0

Possible Duplicate:
Remove VIM search highlight

In vim, when searching for a string (using :/abc for instance), it will become highlighted with yellow, like this:

enter image description here

After switching back to insert mode, the highlight will still be visible. How to make it disappear?

max
  • 4,163

1 Answers1

1

You can use :nohl or :nohlsearch. More information about these commands are found in the help: :h nohl.

It also makes sense to map :nohl to a key for quicker access, e.g.

nnoremap <silent> <C-l> :nohl<CR><C-l>
Marco
  • 4,444