Archive for August, 2012

Clear last search highlighting in VIM

By default in VIM, the last searched for word stays highlighted.
Adding this line:

nnoremap <esc> :noh<return><esc>

to this file:

~/.vimrc

allows you to clear the search highlighting just by tapping the ESC key.