?

Log in

No account? Create an account

getting out of vim's crazy-colorful search keyword highlighting in five fewer keystrokes

« previous entry | next entry »
Jul. 11th, 2005 | 04:44 am
mood: busybusy

If you add this to your .vimrc:
" Clears search highlighting by just hitting a return.
" The <BS> clears the command line.
" (From Zdenek Sekera [zs@sgi.com]  on the vim list.)
"  Guido@VanHoecke.org added the final <cr> to restore the standard behaviour of
" <cr> to go to the next line
:nnoremap <CR> :noh<CR>/<BS><CR>
search highlighting will be removed when you next press Enter.

found in the comments of vim Tip #1
Tags: , ,

Link | Leave a comment | Share

Comments {1}

Triple Entendre

(no subject)

from: triple_entendre
date: Jul. 11th, 2005 09:47 am (UTC)
Link

see also Tip #14

Reply | Thread