Last Updated: February 25, 2016
·
608
· mecampbellsoup

Highlight/find all strings matching the string under the cursor

Say you're looking at some code in vim in visual mode:

The cursor is over the string include. Pressing the * key then goes through the page and highlights all matches as such:

You can even see the regex vim produced at the bottom of the window.