Re: per-window search highlighting/colors

2006-09-26 Thread Brian Lewis
On Tue, 26 Sep 2006 10:16:22 -0400
Benji Fisher [EMAIL PROTECTED] wrote:

 On Tue, Sep 26, 2006 at 12:27:39AM -0500, Brian Lewis wrote:
  I'm editing a file and open a preview window. When I search
  with /, I'd like the main window to show highlighted matches, but
  for the preview window not to.
 
  I cannot think of a way to do this.  Syntax-based highlighting
 is local to the buffer, so it can be changed for the preview
 window, but the Search highlight group is not syntax-based.

http://www.vim.org/scripts/script.php?script_id=321 is almost what I
need. With it, :Bs pattern highlights pattern in just the current
window. Can I redefine / to use Bs?


per-window search highlighting/colors

2006-09-25 Thread Brian Lewis
I'm editing a file and open a preview window. When I search with /, I'd
like the main window to show highlighted matches, but for the preview
window not to.

nohlsearch seems to be global, so I can't :setl nohlsearch in the
preview window to get what I want.

Maybe there's a way to modify color scheme settings in the preview window
to make highlighted matches look as if they aren't highlighted?

Thanks for the help.