Vim Recall繁體中文

Accept a completion selected with a cursor key

<CR> (completion)

Example

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

Accept a completion selected with a cursor key.

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. Enter therefore accepts it without a newline.

Details & Vim help

Accept a completion selected with a cursor key. If you have not selected a candidate with a cursor key, Enter inserts a line break.