Reverse the search direction
N
Example
Normal 0 / 1Normal 1 / 1red blue red green redCursor on line 1, column 19red blue red green redCursor on line 1, column 10Find another match opposite the last search direction.
Find another match opposite the last search direction
Before & after
red blue red green redCursor on line 1, column 19red blue red green redCursor on line 1, column 10Start 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.