分割視窗並跳至識別字的定義
:isplit
範例
一般模式 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;
命令列
- 輸入的文字
:isplit helper- 插入偏移量
14
跳到 defs.h 中符合的 helper 宣告。另一個分割視窗仍顯示 main.c。
視窗
- defs.h 使用中
#define LIMIT 3 int helper(void);
- main.c
#include "defs.h" int result = LIMIT;
操作前後
#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);
- main.c
#include "defs.h" int result = LIMIT;
依 Vim 文件示範。支援 +find_in_path。main.c 引入畫面所示的 defs.h,path=. 可找到此檔,define 與 include 分別比對 #define 和 #include。nosplitbelow 讓新分割出的水平視窗位於來源視窗上方。defs.h 和目前的 main.c 位於同一目錄,且可讀取。跳到 defs.h 中符合的 helper 宣告。另一個分割視窗仍顯示 main.c。主要說明::isplit。