Vim Recall繁體中文

Reverse the search direction

N

Example

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

Find another match opposite the last search direction.

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

Details & Vim help

Example replayed in Vim

Find another match opposite the last search direction.

After /, N goes backward; after ?, N goes forward. The uppercase key is different from n.