How to clear vim search highlight

Bug report

After running the :substitute command on a note I still have yellow boxes around my matches. I tried using esc and :set invhlsearch but no :game_die:. Which is basically my way of saying I’m deeply ashamed to have to ask! In my defense, I checked the forum search and the plugin GH page first.

Any ideas?

Environment

  • Platform: MacOS
  • Platform version: 12.4 Mont
  • App Version: 5.5.0 (5.5.0)

How to reproduce

  1. use :s/xxx/yyy
  2. yellow boxes appear on all notes with the search term
  3. ESC does not remove them

Hi Jose,

Thanks for the question.
You can use :nohlsearch ex command to clear the search highlights.