Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

marked as duplicate by Heptite, Indrek, Canadian Luke, 8088, Rich Homolka Sep 11 '12 at 15:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

:nohl or :nohlsearch – Marco Sep 7 '12 at 12:59
:nohl<CR> not :nohl whatever<CR> (<CR> = return) – Marco Sep 7 '12 at 13:24
@Marco Thanks its working... – max Sep 10 '12 at 4:59
up vote 1 down vote accepted

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>
share|improve this answer

Not the answer you're looking for? Browse other questions tagged .