I am using VIM 6.4 under windows and Linux.  I do NOT
like the hlsearch option so like to keep it off.  I
DO, however, like the incsearch so it is on in my
.vimrc file.

Suppose you do the following:

gg
(move to the beginning)

/<mySearchString>
(Vim jumps to first occurance and highlights the
matched portion)

<ENTER>
(Now the highlight is gone)

n
(jumps to next occurance)

Now here is the problem:  I have trouble IMMEDIATELY
seeing the cursor as VIM jumps to the line which has
the next occurance.

What do I add to my .vimrc file to get VIM to
highlight the matched portion of the next match in
addition to simply moving the cursor to the next
match?

I do not like tip # 235.

What I am looking for is that when I hit the 'n' key,
VIM should move the cursor to the next match AND
highlight it as well using, for example, the 'Search',
or 'IncSearch', or the 'Todo' highlight group.  As
soon as I hit the 'n' key again, the previous
highlight should disappear and the next one should get
highlighted.

It might even be better if the background color of the
whole line get slightly lighter in case the search
string is fairly small and simply highlighting the
matced portion does not help much.

Salman


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to