Accept a completion selected with a cursor key
<CR> (completion)
Example
Insert 0 / 1Insert 1 / 1alInsertion point on line 1, column 3alpineInsertion point on line 1, column 7Accept 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
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. 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.