|
发表于 2007-4-12 13:49:46
|
显示全部楼层
- VimTip 93: if you use 'highlight search' feature, map a key to :noh
- http://vim.sourceforge.net/tip_view.php?tip_id=
- It is very convenient to use 'hlsearch' option. However it can be annoying to have the highlight stick longer than you want it. In order to run it off you have to type at least 4 keystrokes, ":noh". So, it's a good idea to map this to a key. I like to map it to control-n. This is the line I use in my .vimrc file to do it:
- nmap <silent> <C-N> :silent noh<CR>
复制代码 |
|