Select the current or previous match
gN
Example
Normal 0 / 1Visual 1 / 1red blue red green redCursor on line 1, column 19red blue red green redCursor on line 1, column 10 · Character selectionSelect a match of the last search pattern, searching backward.
Selection active · ready to adjust or apply
Before & after
red blue red green redCursor on line 1, column 19red blue red green redCursor on line 1, column 10 · Character selectionStart in Normal mode. The previous search pattern is red. Vim selects the matching text in the requested direction.
Details & Vim help
Example replayed in Vim
Select a match of the last search pattern, searching backward.
gN is the backward counterpart of gn. If already in Visual mode it can extend a selection, rather than simply selecting one isolated match.