Search highlighting becomes annoying after I’ve found the target word by using /string in vim. Could someone tell me what is the quickest way to turn off search highlighting? Thanks.
Search highlighting becomes annoying after I’ve found the target word by using /string in
Share
The simplest way is to enter the
:nohcommand.Additionally, you can add this line to your
.vimrcto map that command to the Enter key, so you can simply press Enter after searching to clear highlight::nohagain!