Find previous match for keyword before the cursor
Ctrl-p
Example
Insert 0 / 1Insert 1 / 1alpha alpine beta
alInsertion point on line 2, column 3alpha alpine beta
alInsertion point on line 2, column 3Find previous match for keyword before the cursor.
Completion
Completion inactive
Vim offers alpha and alpine as completions for al.
Completion
Mode: keyword
- alpha
- alpine
Before & after
alpha alpine beta
alInsertion point on line 2, column 3Completion
Completion inactive
alpha alpine beta
alInsertion point on line 2, column 3Completion
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.