1

I'm using the evil-search module ((evil-select-search-module 'evil-search-module 'evil-search)). When I perform a search, the results remain highlighted until I call evil-ex-nohighlight.

I'd prefer that the highlights go away by themselves after a few seconds. I tried (setq evil-ex-search-persistent-highlight nil), but this setting apparently doesn't apply to evil-search. Is there a way of having auto-expiring highlights with evil-search?

1 Answer 1

1

Using (setq evil-ex-search-persistent-highlight nil) and (evil-select-search-module 'evil-search-module 'evil-search) searching for matches with / highlights them while I enter the pattern, then removes the highlight after pressing RET or aborting the search. This is the full extent of evil-ex-search-persistent-highlight, it does not apply to commands such as n and N. Patches welcome for these.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.