Vim Recall繁體中文

Like ":grep" but searches help files

:helpgrep

Example

Normal 0 / 2
alpha
beta
gamma
Cursor on line 1, column 1

Like ":grep" but searches help files.

Before & after
Before
alpha
beta
gamma
Cursor on line 1, column 1
After
*demo-topic*
DemoNeedle: a tiny example help topic.
Cursor on line 2, column 1

Windows

Help: demo.txt Active
*demo-topic* DemoNeedle: a tiny example help topic.
Original buffer
alpha beta gamma

Quickfix list

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

Documentation-backed illustration. +quickfix and uncompressed help; runtimepath contains only this tiny help runtime, with no other DemoNeedle matches; no existing help window, enough split space and nosplitbelow. :helpgrep finds the one matching help line and jumps to it. The result is stored in the global quickfix list. Primary help: :helpgrep.

Details & Vim help

Like ":grep" but searches help files. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :helpg[rep] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.