
Question:
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,
Solution:1
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
Solution:2
The command you want is :nohl
.
Solution:3
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
EmoticonEmoticon