我在哪里可以找到Vim`tag`选项的完整参考?

时间:2017-04-20 03:03:38

标签: vim ctags

我看到两个答案,谈论如何设置Vim的tags选项 它开始从当前目录中查找tags文件 然后处理目录树,直到找到一个。该命令看起来像 此

set tags=./tags;/

以下是谈论它的帖子。

此语法使用分号来建立某种范围 要搜索的目录(即以当前目录开头并以。结尾) 根目录)。

事实上,在第一个链接的答案评论中,有一个 评论说,

  

如果你到达根目录,你甚至不需要/。只需;即可。

所有这些东西都记录在哪里?我查了:help 'tags然后找到了 没有提到这一点。

                        *'tags'* *'tag'* *E433*
'tags' 'tag'        string  (default "./tags,tags", when compiled with
                |+emacs_tags|: "./tags,./TAGS,tags,TAGS")
            global or local to buffer |global-local|
    Filenames for the tag command, separated by spaces or commas.  To
    include a space or comma in a file name, precede it with a backslash
    (see |option-backslash| about including spaces and backslashes).
    When a file name starts with "./", the '.' is replaced with the path
    of the current file.  But only when the 'd' flag is not included in
    'cpoptions'.  Environment variables are expanded |:set_env|.  Also see
    |tags-option|.
    "*", "**" and other wildcards can be used to search for tags files in
    a directory tree.  See |file-searching|.  E.g., "/lib/**/tags" will
    find all files named "tags" below "/lib".  The filename itself cannot
    contain wildcards, it is used as-is.  E.g., "/lib/**/tags?" will find
    files called "tags?".  {not available when compiled without the
    |+path_extra| feature}
    The |tagfiles()| function can be used to get a list of the file names
    actually used.
    If Vim was compiled with the |+emacs_tags| feature, Emacs-style tag
    files are also supported.  They are automatically recognized.  The
    default value becomes "./tags,./TAGS,tags,TAGS", unless case
    differences are ignored (MS-Windows).  |emacs-tags|
    The use of |:set+=| and |:set-=| is preferred when adding or removing
    file names from the list.  This avoids problems when a future version
    uses another default.
    {Vi: default is "tags /usr/lib/tags"}

我在哪里可以找到所有技巧的完整参考资料 使用Vim的tags选项?

1 个答案:

答案 0 :(得分:4)

  

在哪里可以找到我可以使用Vim tags选项的所有技巧的完整参考?

来自:help 'tags'

"*", "**" and other wildcards can be used to search for tags files in
a directory tree.  See |file-searching|.

|file-searching]是一个标记,在其上按<C-]>以查找有关

的更多信息
  

&#34; *&#34;,&#34; **&#34;和其他通配符。