Vim Search Word Under Cursor

[Solved] Vim command how to select a word under cursor 9to5Answer

Vim Search Word Under Cursor. In normal mode, move the cursor to any word then press * to search forwards for the next occurrence of the word under. Another approach is to map your * key in visual mode to make it search for the selection:

[Solved] Vim command how to select a word under cursor 9to5Answer
[Solved] Vim command how to select a word under cursor 9to5Answer

In normal mode, move the cursor to any word then press * to search forwards for the next occurrence of the word under. Use * to search forward and # to search backward, for the word under the cursor. Another approach is to map your * key in visual mode to make it search for the selection:

Another approach is to map your * key in visual mode to make it search for the selection: In normal mode, move the cursor to any word then press * to search forwards for the next occurrence of the word under. Use * to search forward and # to search backward, for the word under the cursor. Another approach is to map your * key in visual mode to make it search for the selection: