Vim Recall繁體中文

Show #defines

:dlist

Example

Normal 0 / 2

Show #defines.

Windows

main.c Active
#include "defs.h" int result = LIMIT;
Before & after

Before

Windows

main.c Active
#include "defs.h" int result = LIMIT;

After

Include search result

defs.h:1
#define LIMIT 3

Documentation-backed illustration. +find_in_path; main.c includes the shown defs.h, path=. finds it, define matches #define, and include matches #include; the current buffer is named main.c and defs.h is a readable disk file beside it; cmdheight=4, no pending messages and at least 80 columns keep the short output unwrapped and avoid hit-enter; the output panel is a labelled summary. Display the macro definition in defs.h. Primary help: :dlist.

Sample buffer
#include "defs.h"
int result = LIMIT;
Cursor on line 1, column 1
Details & Vim help

Show #defines. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :dli[st] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.