开发者

Cancel the select pattern in VIM

When I try to search some words in a article, it would highlight the pattern. After I have already found what I want, what should I do to cancel the select pattern, whi开发者_运维问答ch means I don't want the words to be highlighted.

Best Regards,


The command you want is :nohl.


Before I turned search highlighting off permanently, /sdjrgjlsfj was my preferred command.


I've mapped ESC-u to do this (like the less command):

nnoremap <ESC>u :nohlsearch<CR>

I learned that from this page: http://www.semicomplete.com/blog/geekery/make-vim-hlsearch-like-less.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜