Vim RecallEnglish

類似 :grep,但搜尋說明檔案

:helpgrep

範例

一般模式 0 / 2
alpha
beta
gamma
游標位於第 1 行,第 1 欄

類似 :grep,但搜尋說明檔案。

操作前後
操作前
alpha
beta
gamma
游標位於第 1 行,第 1 欄
操作後
*demo-topic*
DemoNeedle: a tiny example help topic.
游標位於第 2 行,第 1 欄

視窗

說明:demo.txt 使用中
*demo-topic* DemoNeedle: a tiny example help topic.
原本的緩衝區
alpha beta gamma

Quickfix 清單

1
demo.txt:2: DemoNeedle: a tiny example help topic.

依 Vim 文件示範。+quickfix 且未壓縮的說明。runtimepath 僅包含此小型說明執行階段,無其他 DemoNeedle 匹配。無現有的說明視窗,分割空間足夠且 nosplitbelow。:helpgrep 找到唯一匹配的說明行並跳轉至該行。結果儲存於全域 quickfix 清單中。主要說明::helpgrep。

詳細說明與 Vim 文件

本例輸入 :helpgrep DemoNeedle 後按 Enter。可簡寫為 :helpg。