Vim Recall繁體中文

Search backward for the Nth previous occurrence of {pattern}

?{pattern}<CR>

Example

Normal 0 / 2
one target two target
Cursor on line 1, column 21

Search backward for the Nth previous occurrence of {pattern}.

Before & after
Before
one target two target
Cursor on line 1, column 21
After
one target two target
Cursor on line 1, column 16

Start in Normal mode. Replace {pattern} with target, then press Enter.

Details & Vim help

Example replayed in Vim

Search backward for the Nth previous occurrence of {pattern}. Use in Normal mode. Braced names stand for the required argument and are not typed literally. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.