After a search I've done, all the matches for the respective query remain highlighted and it's annoying. This happens even after I close the respective file (normal behavior?). How to I remove this?
|
feedback
|
|
You want the command
After that, you just enter your leader (which by default is You can also remap your leader to something more comfortable, if you like. I use a comma:
(That goes before the mapping to clear searches.) | |||||||||
feedback
|
|
i just | |||||
|
feedback
|
|
Similar to @Telemachus answer above, a comment on this answer over at SO by @David Winslow suggested mapping a toggle of
Hitting n would then toggle highlight search off and on every time you hit it. | |||
|
feedback
|
|
In my config, I clear highlighted search terms by just hitting enter in command mode. This is how that's configured.
As a side note, I like to make sure that my search matches are highlighted super clearly, no matter the color scheme, so I give them black text on a yellow background.
| |||
|
feedback
|