How do you make Vim unhighlight what you searched for? [duplicate]

Solution 1:

:noh (short for nohighlight) will do the trick.

Solution 2:

Just put this in your .vimrc

" <Ctrl-l> redraws the screen and removes any search highlighting.
nnoremap <silent> <C-l> :nohl<CR><C-l>

Solution 3:

/lkjasdf has always been faster than :noh for me.

Solution 4:

" Make double-<Esc> clear search highlights
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>