為指定目錄產生說明標籤
:helptags
範例
一般模式 0 / 2命令列模式 1 / 2一般模式 2 / 2為指定目錄產生說明標籤。
已準備完成文件
- doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.- doc/tags
不存在
指令已輸入。按 Enter 執行。
已準備完成文件
- doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.- doc/tags
不存在
命令列
- 輸入的文字
:helptags /example/runtime/doc- 插入偏移量
30
:helptags 掃描文件中的星號標籤,並產生將 demo-topic 對應到 demo.txt 的索引。
產生的說明標籤
- doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.- doc/tags
demo-topic demo.txt /*demo-topic*
操作前後
操作前
已準備完成文件
- doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.- doc/tags
不存在
操作後
產生的說明標籤
- doc/demo.txt
*demo-topic* DemoNeedle: a tiny example help topic.- doc/tags
demo-topic demo.txt /*demo-topic*
依 Vim 文件示範。/example/runtime/doc 存在、可寫入,且僅包含此 UTF-8 說明檔案,其中具有一個唯一標籤。:helptags 掃描文件中的星號標籤,並產生將 demo-topic 對應到 demo.txt 的索引。主要說明::helptags。
*demo-topic*
DemoNeedle: a tiny example help topic.游標位於第 1 行,第 1 欄