Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get rid of Vim's highlight after searching text

Tags:

vim

In VIM, after finding text with "/" command, that text remains highlighted.

What is the command to remove that? I don't want to remove highlighting capability at all, but don't want to have all those bright text spots once I've found what I need.

Thanks.

like image 808
Mark Avatar asked Dec 07 '10 01:12

Mark


People also ask

How do you stop text from highlighting when typing?

Remove highlighting from part or all of a document Select the text that you want to remove highlighting from, or press Ctrl+A to select all of the text. Go to Home and select the arrow next to Text Highlight Color. Select No Color.

How do I get rid of red highlight in vim?

If you want to avoid this in an apache . conf file like I did, you can add it to the end, like "# vim: nospell". Or, you could add words to spelling dictionary. I have to do set nospell , every time that red happens!


1 Answers

Type this:

:noh 
like image 191
Andrew Clark Avatar answered Sep 20 '22 02:09

Andrew Clark