how to shut down highlight after using find instruction in vim
highlighting is become annoying after I found the target word by using /string in vim , could any body tell me what is the quickest way to shutdown highlighting ? thanks
The simplest way is to enter the :noh
command.
Additionally, you can add this line to your .vimrc
to map that command to the Enter key, so you can simply press Enter after searching to clear highlight:
:nnoremap <CR> :noh<CR><CR>
:noh
again!