shawn bright said on 02-04-07 17:56:
lo there,
when i do a search like  /text
it highlights all of the matches and i can use n and N to navigate.
how do i turn the highlighting off when i am done?

You could put following mapping in your.vimrc:

:nnoremap <silent> <CR> :nohlsearch<CR>

Now, as soon as you hit the enter key, the higlight is turned off.

Is a very straigthforward and easy way of turning off the current highlight, 
without changing your settings at all.

HTH, Guido.

--
http://vanhoecke.org ... and go2 places!

Reply via email to