Complete whole lines
Ctrl-x Ctrl-l
Example
Insert 0 / 1Insert 1 / 1alpha alpine beta
alInsertion point on line 2, column 3alpha alpine beta
alInsertion point on line 2, column 3Complete whole lines.
Completion
Completion inactive
Vim offers the entire line alpha alpine beta as a completion for al.
Completion
Mode: whole_line
- alpha alpine beta
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: whole_line
- alpha alpine beta
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
Complete whole lines. Context: commands in CTRL-X submode *i_CTRL-X_index*. 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.