Generate help tags for a directory
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Generate help tags for a directory.
Prepared documentation
- doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.- doc/tags
absent
Command entered · ready to apply
Prepared documentation
- doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.- doc/tags
absent
Command line
- Typed text
:helptags /example/runtime/doc- Insertion offset
30
:helptags scans the document's starred tag and generates an index mapping demo-topic to demo.txt.
Generated help tags
- doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.- doc/tags
demo-topic demo.txt /*demo-topic*
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.
*demo-topic*
DemoNeedle: a tiny example help topic.Cursor on line 1, column 1Details & 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.