Vim Recall繁體中文

Find previous match for keyword before the cursor

Ctrl-p

Example

Insert 0 / 1
alpha alpine beta
al
Insertion point on line 2, column 3

Find previous match for keyword before the cursor.

Completion

Completion inactive
Before & after
Before
alpha alpine beta
al
Insertion point on line 2, column 3

Completion

Completion inactive
After
alpha alpine beta
al
Insertion point on line 2, column 3

Completion

Mode: keyword
alpha
alpine

Start in Insert mode. Completion candidates come from the displayed buffer only; complete=. restricts keyword sources. The panel shows Vim's actual candidates.

Details & Vim help

Example replayed in Vim

Find previous match for keyword before the cursor. Use in Insert mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.