Friday, September 19, 2008

Unhighlight Current Search

If you want to un-highlight the currently highlighted search terms, issue the following command.

:noh

5 comments:

Mathias Stearn said...

I find it easier to just type a bogus search like /adsf

Anonymous said...

what are the functional differences between this and
:let @/ = ""
I've had that mapped to a key for a long time, and I've never noticed the :noh command.

Dr Foobario said...

Many people use these 2 mappings. Since <C-L> redraws the screen, it seems natural to attach a :noh to it

nnoremap <C-L> :nohls<CR><C-L>

inoremap <C-L> <C-O>:nohls<CR>

Unknown said...

I like to toggle search highlighting.

map <C-F> :set hls!<bar> set hls?<CR>

verbose said...

how do i unhighlight my blog when blogger automatically highlights it ? kindly help :(