- 论坛徽章:
- 0
|
:noh :nohlsearch
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 noh
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12467/showart_1005774.html |
|