Vim Recall繁體中文

Like ":helpgrep" but uses location list

:lhelpgrep

Example

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

Like ":helpgrep" but uses location list.

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

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.