例如,在this manual中,您将在开头看到:
Table Of Contents *user-manual*在整本手册中有许多像*user-manual*这样的星号引用文本。他们是什么?它们是超链接跳转的锚点吗?
发布于 2014-03-14 20:13:34
如果您在vim中打开文件类型为HELP的文档,您将不会看到这些*或|。
:h help-writing在标签部分:
To define a help tag, place the name between asterisks (*tag-name*).
The tag-name should be different from all the Vim help tag names and
ideally should begin with the name of the Vim plugin. The tag name is
usually right aligned on a line.基本上,标记使其更容易跳转到。
你可以尝试一下,当你的光标在|foo|上时,按下ctrl-],你会跳到tag *foo*。要跳回原始位置,请按ctrl-t键。很不错不是吗?
https://stackoverflow.com/questions/22404507
复制相似问题