Tutorial :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, which means I don't want the words to be highlighted.

Best Regards,


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


The command you want is :nohl.


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

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »