Vim Recall繁體中文

Search the cursor word backward

#

Example

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

Find an earlier occurrence of the current keyword.

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

Start in Normal mode.

Details & Vim help

Example replayed in Vim

Find an earlier occurrence of the current keyword.

# creates a whole-keyword search from the word under or near the cursor and searches backward. It also sets the search direction used by n and N.