Vim / Neovim Search, Substitute, and Macros/Search for word under cursor

Search the symbol at the cursor instantly.

Section: Search navigation

Search for word under cursor

vim
vim
*  #
Explanation

Great for moving through repeated identifiers in code.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Search navigation
Search forward
Find the next match after the cursor.
OpenIn sheetvimsame section
Search backward
Search upward through the file.
OpenIn sheetvimsame section
Jump among matches
Repeat the last search in either direction.
OpenIn sheetvimsame section
Clear search highlight
Remove visual search highlighting.
OpenIn sheetvim2 tag match
Substitute on current line
Replace matches only on the current line.
OpenIn sheetvim1 tag match
Record a macro
Start recording keystrokes into a register.
OpenIn sheetvim1 tag match