From Learn VImscript the hard way

:set hlsearch incsearch
hlsearch tells Vim to highlight all matches in a file when you perform a search, and incsearch tells Vim to highlight the next match while you're still typing out your search pattern.

Yes, please. Mucho gusto.

Sometimes it surprises me how much of VIm I don't [know to] use, but still believe VIm's my best text editing option. Though, honestly, I think we could argue those two options should be on by default at this point.

This post brought to you by my forgetting again that you have to escape the plus sign to use it in a regexp in VIm.


Labels: ,