VIM: remove highlighting after search

url:http://darkmind2007.blogspot.com/2010/01/vim-remove-highlighting-after-search.html

Just found the right way of removing highlighting in VIM after search. Before this I usually just entered another senseless search criteria (which is for sure doesn't exist in the text). What I really liked in the found solution is additional keymapping for such a frequent action.

The command which removes highlighting of the last search is :nohlsearch or it's abbreviation :noh

It can be mapped, for example, to Ctrl-N combination by adding the following line to the .vimrc: nmap <silent> <C-N> :silent noh<CR>