Chinaunix首页 | 论坛 | 博客
  • 博客访问: 966385
  • 博文数量: 184
  • 博客积分: 10030
  • 博客等级: 上将
  • 技术积分: 1532
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-27 18:32
文章分类

全部博文(184)

文章存档

2009年(1)

2008年(63)

2007年(39)

2006年(79)

2005年(2)

我的朋友

分类: LINUX

2008-06-19 23:20:30

:noh        :nohlsearch


VimTip 93: if you use 'highlight search' feature, map a key to :noh


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
阅读(3376) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~