Like ":helpgrep" but uses location list
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 ":helpgrep" but uses location list.
Command entered · ready to apply
Command line
- Typed text
:lhelpgrep DemoNeedle- Insertion offset
21
:lhelpgrep finds the one matching help line and jumps to it. The new help window owns the location list, not the original editing window.
Windows
- Help: demo.txt Active
*demo-topic* DemoNeedle: a tiny example help topic.
- Original buffer
alpha beta gamma
Help-window location 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
Help-window location 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. :lhelpgrep finds the one matching help line and jumps to it. The new help window owns the location list, not the original editing window. Primary help: :lhelpgrep.
Details & Vim help
Like ":helpgrep" but uses location list. 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 :lh[elpgrep] 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.