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.
>
> 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.
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.
--Benji Fisher