Reputation: 6201
I accidentally "searched" (:/u<Enter>
) in MacVim with Janus and now I can't get the highlighting to go away. I really don't need every u
highlighted.
I really like this feature in general, I just need to turn off the highlighting when I'm done with it.
Upvotes: 2
Views: 472
Reputation: 762
From Janus's documentation:
<leader>hs
toggles highlight search
from https://github.com/carlhuda/janus
Upvotes: 0
Reputation: 3371
To turn off highlighting after a search use :noh
. The next time you issue a search, highlighting will come back on again automatically.
I have mapped the RETURN key in normal mode to turn off search highlighting like so:
nnoremap <silent> <CR> :noh<CR>
So after I'm done searching, I get back into normal mode, hit RETURN then no more highlights.
Upvotes: 6
Reputation: 13196
Workaround: Search for a string that isn't there, and nothing will be highlighted.
Upvotes: 0