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>
  • vim clear last search highlighting
  • A Vim and ViEmu mapping you really can't miss - never type :noh again!
  • 链接地址: http://www.djcxy.com/p/49384.html

    上一篇: Vim:当采购vimrc时,最后搜索hl re

    下一篇: 如何在vim中使用find指令后关闭高亮显示