Vim Recall繁體中文

Generate help tags for a directory

:helptags

Example

Normal 0 / 2

Generate help tags for a directory.

Prepared documentation

doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.
doc/tags
absent
Before & after

Before

Prepared documentation

doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.
doc/tags
absent

After

Generated help tags

doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.
doc/tags
demo-topic demo.txt /*demo-topic*

Documentation-backed illustration. /example/runtime/doc exists, is writable, and contains only this UTF-8 help file with a unique tag. :helptags scans the document's starred tag and generates an index mapping demo-topic to demo.txt. Primary help: :helptags.

Sample buffer
*demo-topic*
DemoNeedle: a tiny example help topic.
Cursor on line 1, column 1
Details & Vim help

Generate help tags for a directory. 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 :helpt[ags] 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.