Using the * key searches for the word under the cursor.
Use # to do the same, backwards.
When search is active, all instances of word appears highlighted. I want to know if is possible to remove the highlight selection.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
hlsearch controls this; it can be turned off with
:set nohlsearch. This affects all sorts of searches, however, and not just * and #. One could, theoretically, remap * and # to do what they do and then execute
:nnoremap * * :noh<CR> and
:nnoremap # # :noh<CR> to clear highlighting every time a * or # is performed. The highlighting will still flicker, but clear essentially immediately.