ele
ele

Reputation: 6201

Turning off search highlighting in Janus MacVim

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

Answers (3)

Henry Mazza
Henry Mazza

Reputation: 762

From Janus's documentation:

<leader>hs toggles highlight search

from https://github.com/carlhuda/janus

Upvotes: 0

Steve McKinney
Steve McKinney

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

Wug
Wug

Reputation: 13196

Workaround: Search for a string that isn't there, and nothing will be highlighted.

Upvotes: 0

Related Questions