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.
Written by Matt Campbell
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#