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,
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With