Vim RecallEnglish

從檔案開頭搜尋並跳到第一個含有該單字的行

[ Ctrl-i

範例

一般模式 0 / 1
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"
游標位於第 3 行,第 11 欄

搜尋目前檔案及它引入的檔案,找出游標所在的單字。

已準備來源工作區

#define LIMIT 20
int target_later;
int target;
目前項目
example.c
包含
later.h
關鍵字
target

視窗示意

example.c 使用中
使用中的原始碼視窗
操作前後
操作前
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"
游標位於第 3 行,第 11 欄

已準備來源工作區

#define LIMIT 20
int target_later;
int target;
目前項目
example.c
包含
later.h
關鍵字
target

視窗示意

example.c 使用中
使用中的原始碼視窗
操作後
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"
游標位於第 2 行,第 5 欄

已準備來源工作區

#define LIMIT 20
int target_later;
int target;
目前項目
example.c
包含
later.h
關鍵字
target

視窗示意

example.c 使用中
已找到定義或宣告

操作示意。在範例檔案 example.c 中,游標下方有一行引入 later.h。使用 C 的 include 和 define 樣式。path=.,iskeyword 包含底線,符合的項目均位於註解之外。這裡以範例資料示意,沒有實際開啟檔案。搜尋從檔案開頭開始。

詳細說明與 Vim 文件

搜尋目前檔案及它引入的檔案,找出游標所在的單字。

在一般模式依範例輸入 [ Ctrl-i。搜尋目前檔案及它引入的檔案,找出游標所在的單字。