Vim Recall繁體中文

Search forward for the Nth occurrence of {pattern}

/{pattern}<CR>

Example

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

Search forward for the Nth occurrence of {pattern}.

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

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

Details & Vim help

Example replayed in Vim

Search forward for the Nth 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.