Accept selected match and stop completion
Ctrl-y (completion)
Example
Insert 0 / 1Insert 1 / 1alInsertion point on line 1, column 3alpineInsertion point on line 1, column 7Accept selected match and stop completion.
Prepared visible popup
- 1
alpha- 2 Active
alpine- 3
alps- 4
alto- 5
always- 6
algebra- 7
alias- 8
align- 9
alive
Completion state
- Originally typed
al- State
Selected entry has not been inserted
Insert and accept selected alpine; close the popup.
Before & after
alInsertion point on line 1, column 3Prepared visible popup
- 1
alpha- 2 Active
alpine- 3
alps- 4
alto- 5
always- 6
algebra- 7
alias- 8
align- 9
alive
Completion state
- Originally typed
al- State
Selected entry has not been inserted
alpineInsertion point on line 1, column 7ILLUSTRATION. A visible popup is in its second state: al is still in the buffer, alpine is selected with a cursor key, and has not yet been inserted. Ctrl-y therefore accepts it and stops completion without adding a character.
Details & Vim help
Accept selected match and stop completion. Context: commands in completion mode (see popupmenu-keys). Parenthesized context labels in the displayed keys are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.