Vim Search Word Under 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:
Vim (09) Substitute (Search and Replace) YouTube
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.
In normal mode, move the cursor to any word then press * to search forwards for the next occurrence of the word under. 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: Use * to search forward and # to search backward, for the word under the cursor.