Vim Recall繁體中文

Complete defined identifiers

Ctrl-x Ctrl-d

Example

Insert 0 / 2
#include "prepared.h"
LI
Insertion point on line 2, column 3

Complete defined identifiers.

Prepared header

File
prepared.h
Prepared data
#define LIMIT 10
Before & after
Before
#include "prepared.h"
LI
Insertion point on line 2, column 3

Prepared header

File
prepared.h
Prepared data
#define LIMIT 10
After
#include "prepared.h"
LIMIT
Insertion point on line 2, column 6

Prepared 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.