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.

  1. No comments yet.

  1. No trackbacks yet.