Vim Recall繁體中文

Navigate to definition of identifier

:ijump

Example

Normal 0 / 2
#include "defs.h"
int result = LIMIT;
Cursor on line 1, column 1

Navigate to definition of identifier.

Windows

main.c Active
#include "defs.h" int result = LIMIT;
Before & after
Before
#include "defs.h"
int result = LIMIT;
Cursor on line 1, column 1

Windows

main.c Active
#include "defs.h" int result = LIMIT;
After
#define LIMIT 3
int helper(void);
Cursor on line 2, column 5

Windows

defs.h Active
#define LIMIT 3 int helper(void);

Documentation-backed illustration. +find_in_path; main.c includes the shown defs.h, path=. finds it, define matches #define, and include matches #include. Jump to the matching helper declaration in defs.h. Primary help: :ijump.

Details & Vim help

Navigate to definition of identifier. 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 :ij[ump] 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.