跳轉至識別字的定義處
:ijump
範例
一般模式 0 / 2命令列模式 1 / 2一般模式 2 / 2#include "defs.h"
int result = LIMIT;游標位於第 1 行,第 1 欄#include "defs.h"
int result = LIMIT;游標位於第 1 行,第 1 欄#define LIMIT 3
int helper(void);游標位於第 2 行,第 5 欄跳轉至識別字的定義處。
視窗
- main.c 使用中
#include "defs.h" int result = LIMIT;
指令已輸入。按 Enter 執行。
視窗
- main.c 使用中
#include "defs.h" int result = LIMIT;
命令列
- 輸入的文字
:ijump helper- 插入偏移量
13
跳至 defs.h 中相符的 helper 宣告。
視窗
- defs.h 使用中
#define LIMIT 3 int helper(void);
操作前後
#include "defs.h"
int result = LIMIT;游標位於第 1 行,第 1 欄視窗
- main.c 使用中
#include "defs.h" int result = LIMIT;
#define LIMIT 3
int helper(void);游標位於第 2 行,第 5 欄視窗
- defs.h 使用中
#define LIMIT 3 int helper(void);
依 Vim 文件示範。+find_in_path。main.c 包含顯示的 defs.h,path=. 找到它,define 符合 #define,include 符合 #include。跳至 defs.h 中相符的 helper 宣告。主要說明::ijump。