Vim Search Word Under Cursor

How to Search in Vim / Vi Linuxize

Vim Search Word Under Cursor. Use * to search forward and # to search backward, for the word under the cursor. In normal mode, move the cursor to any word then press * to search forwards for the next occurrence of the word under.

How to Search in Vim / Vi Linuxize
How to Search in Vim / Vi Linuxize

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