Vim Recall繁體中文

Repeat the search direction

n

Example

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

Find another match in the last search direction.

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 forward search pattern is red; searches wrap at the buffer ends.

Details & Vim help

Example replayed in Vim

Find another match in the last search direction.

After /, n goes forward; after ?, n goes backward. It repeats the current pattern, so next means the direction of the latest search, not always downward.