


It incorporates the answer from How can I get ‘n’ to go forward even if I started searching with ‘?’ or ‘#’?.It will highlight the match current indefinitely, I found the blinking annoying, and there's a small 0.1s delay before any other keypress is registered.

The vim-searchhi plugin provides the originally requested feature.īased on Rich's answer here with some differences: Allows you to interrupt the blinking by typing other commands (such as pressing n again to jump to the next match.) This allows you to set a longer time.(Optionally) blinks repeatedly: Conway's original version just blinks once: on and then off,.I recently wrote this more advanced version in response to another question. If you want the change in highlighting to be more persistent, you could tweak this to call matchdelete at some other time (e.g. Let target_pat = ring = matchadd('ErrorMsg', target_pat, 101)Įxec 'sleep '. " Damian Conway's Die Blinkënmatchen: highlight matches It causes the entire highlight to blink briefly when you leap between search results. I use this snippet from Damian Conway's fantastic talk, More Instantly Better Vim (at 4m 59s).
