11

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

Yank
  • 718
  • 6
  • 17

1 Answers1

9

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>
Community
  • 1
  • 1
Jonathon Reinhart
  • 132,704
  • 33
  • 254
  • 328