Complete defined identifiers
Ctrl-x Ctrl-d
Example
Insert 0 / 2Insert 1 / 2Insert 2 / 2#include "prepared.h"
LIInsertion point on line 2, column 3#include "prepared.h"
LIMITInsertion point on line 2, column 6#include "prepared.h"
LIMITInsertion point on line 2, column 6Complete defined identifiers.
Prepared header
- File
prepared.h- Prepared data
#define LIMIT 10
Start this completion family and insert the prepared first candidate.
Prepared header
- File
prepared.h- Prepared data
#define LIMIT 10
Prepared completion menu
- Selected
LIMIT
Accept the selected completion.
Prepared header
- File
prepared.h- Prepared data
#define LIMIT 10
Before & after
#include "prepared.h"
LIInsertion point on line 2, column 3Prepared header
- File
prepared.h- Prepared data
#define LIMIT 10
#include "prepared.h"
LIMITInsertion point on line 2, column 6Prepared header
- File
prepared.h- Prepared data
#define LIMIT 10
ILLUSTRATION. Assume +insert_expand and +find_in_path; prepared.h is readable on path and the displayed include/define syntax is recognized; completeopt=menu,menuone (no noinsert/noselect). Sources are illustrated data, never files read by this module.
Details & Vim help
Complete defined identifiers. 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.