开发者

Cancel the select pattern in VIM

开发者 https://www.devze.com 2023-01-09 05:03 出处:网络
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

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

精彩评论

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