Monday, February 22, 2010

Re: hls Colour

On 22/02/10 3:25 AM, Spencer Collyer wrote:
> On Fri, 19 Feb 2010 11:54:43 +0000, Paul wrote:
>> When I have hls on, the searched words are highlighted. When I press
>> n or # to jump through them, the page might scroll up or down and
>> there could be a number of hit results shown. I sometimes have to
>> wiggle the cursor left and right so I can see which one is currently
>> being hovered over. Is there a way to colour differently each word
>> when I jump through them with n and #?
>>
>
> I don't know if it's possible to highlight the 'current' match
> differently,

No, I'm sure there isn't.

> but when this happens to me I generally just turn the
> cursorline on (:set cursorline) to find which line the match is on, and
> then it is normally obvious which is the match.

You can also change the colour of the search highlighting so it is more
different from your cursor colour. E.g.

:hi Search guibg=darkgrey ctermbg=darkgrey

might be better.

Ben.


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: