Vim command: how to select a word under cursor in normal mode

Keita picture Keita · Jan 30, 2016 · Viewed 38.1k times · Source

I'm looking for a Vim command to select a word under cursor in normal mode, like double-clicking by mouse. Does it exist like this?

Answer

pfnuesel picture pfnuesel · Jan 31, 2016

You can use * and/or # to search for the word under the cursor or viw to visually select the word under the cursor.