Vim Recall繁體中文

Search the cursor word forward

*

Example

Normal 0 / 1
red blue red green red
Cursor on line 1, column 1

Find a later occurrence of the current keyword.

Before & after
Before
red blue red green red
Cursor on line 1, column 1
After
red blue red green red
Cursor on line 1, column 10

Start in Normal mode. The previous search pattern is red; searches wrap at the buffer ends.

Details & Vim help

Example replayed in Vim

Find a later occurrence of the current keyword.

* builds a whole-keyword search from the word under or near the cursor and searches forward. iskeyword defines word boundaries; search options such as wrapscan still matter.