類似 :ijump,但在預覽視窗顯示相符項目
:psearch
範例
一般模式 0 / 2命令列模式 1 / 2一般模式 2 / 2類似 :ijump,但在預覽視窗顯示相符項目。
視窗
- main.c 使用中
#include "paint.h" Paint();
指令已輸入。按 Enter 執行。
視窗
- main.c 使用中
#include "paint.h" Paint();
透過 include 搜尋找到 Paint,並在預覽視窗中顯示 paint.h 的宣告,同時保留 main.c 的焦點。
視窗
- paint.h [Preview]
void Paint(void);
- main.c 使用中
#include "paint.h" Paint();
操作前後
操作前
視窗
- main.c 使用中
#include "paint.h" Paint();
操作後
視窗
- paint.h [Preview]
void Paint(void);
- main.c 使用中
#include "paint.h" Paint();
主題::psearch。依 Vim 文件示範。假設支援 +quickfix 和 +find_in_path。include 樣式能比對 #include,path 包含範例目錄,paint.h 可讀。previewpopup 為空,設定 nosplitbelow 和 splitkeep=cursor,視窗有足夠高度可分割出預覽視窗。按鍵未經映射,也沒有干擾的回呼或待處理提示。此示意尚未以 Vim 實際重播驗證。透過 include 搜尋找到 Paint,並在預覽視窗中顯示 paint.h 的宣告,同時保留 main.c 的焦點。
#include "paint.h"
Paint();游標位於第 1 行,第 1 欄