Shortcut
Vim Search for the Word Under the Cursor Shortcut
The Vim shortcut to search for the word under the cursor is * on Windows. It's the same on Mac.
Quick Answer
- Windows
- *
- Mac
- *
- Web
- Not confirmed yet
VimShortcut
Search for the Word Under the Cursor
Finds the next copy of the word you are standing on.
How to search for the word under the cursor in Vim
- Open Vim and go to where you want to search for the word under the cursor.
- Press * on Windows or * on Mac.
Vim Search for the Word Under the Cursor Shortcut for Windows
Press *.
Vim Search for the Word Under the Cursor Shortcut for Mac
Press *.
Vim Search for the Word Under the Cursor Shortcut for Vim Web
We haven't confirmed a Vim Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the Vim search for the word under the cursor shortcut?
On Windows, press *. On a Mac, press *.
Is there a Mac shortcut to search for the word under the cursor in Vim?
Yes: *.
Does it work in Vim for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify