*
The
Motion
The * command in Vim
Motion
next ident
Search forward for the word under the cursor (whole word match). Use
g* for a partial match. Sets the search register — use n/N to navigate.Examples
*(search forward for word)g*(partial word match)ciw then n. (change word, repeat)#(search backward for word)
Related plugin
haya14busa/vim-asterisk — Extends * so the cursor stays on the current match instead of jumping to the next one. Supports z* (no-jump) and visual star.
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related motions