How to turn off Vim search highlighting

我在〜/下有一个预先配置的.vimrc文件,通过'/'键搜索一个字词后,所有匹配的项目都被高亮显示,但是当我找到需要的位置并点击回车时,突出显示的字词依然高亮显示...它是非常令人失望,因为当我发出 - c /“ - 时,屏幕被高亮显示。该设置控制搜索高亮设施?谢谢!


Vim清除上次搜索高亮显示


You can issue :nohl to turn off highlighting until the next search. I would recommend mapping that to a key.

:map <F4> :nohl<CR>

If you want to turn off highlighting forever, use :se nohlsearch in you .vimrc


If you type " :nohls<enter> " it will turn off the search highlighting. (The next time you do a search, it will be highlighted, this is not a permanent setting. It is useful for turning off the highlighting for the current search.)

Not sure if that's what you're looking for.

链接地址: http://www.djcxy.com/p/49378.html

上一篇: 取消VIM中的选择模式

下一篇: 如何关闭Vim搜索高亮