Like ":grep" but searches help files
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2alpha
beta
gammaCursor on line 1, column 1alpha
beta
gammaCursor on line 1, column 1*demo-topic*
DemoNeedle: a tiny example help topic.Cursor on line 2, column 1Like ":grep" but searches help files.
Command entered · ready to apply
Command line
- Typed text
:helpgrep DemoNeedle- Insertion offset
20
:helpgrep finds the one matching help line and jumps to it. The result is stored in the global quickfix list.
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.
Before & after
alpha
beta
gammaCursor on line 1, column 1*demo-topic*
DemoNeedle: a tiny example help topic.Cursor on line 2, column 1Windows
- 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.