Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

1  
: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
add comment

1 Answer

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
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.