Complete tags
Ctrl-x Ctrl-]
Example
Insert 0 / 2Insert 1 / 2Insert 2 / 2priInsertion point on line 1, column 4printInsertion point on line 1, column 6printInsertion point on line 1, column 6Complete tags.
Prepared tags
- Prepared data
print → library.c
Start this completion family and insert the prepared first candidate.
Prepared tags
- Prepared data
print → library.c
Prepared completion menu
- Selected
print
Accept the selected completion.
Prepared tags
- Prepared data
print → library.c
Before & after
priInsertion point on line 1, column 4Prepared tags
- Prepared data
print → library.c
printInsertion point on line 1, column 6Prepared tags
- Prepared data
print → library.c
ILLUSTRATION. Assume +insert_expand; a prepared tags source contains print as the first match; completeopt=menu,menuone (no noinsert/noselect). Sources are illustrated data, never files read by this module.
Details & Vim help
Complete tags. 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.