Vim Recall繁體中文

Accept selected match and stop completion

Ctrl-y (completion)

Example

Insert 0 / 1
al
Insertion point on line 1, column 3

Accept 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
Before & after
Before
al
Insertion point on line 1, column 3

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
After
alpine
Insertion point on line 1, column 7

ILLUSTRATION. 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.