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?