我看到了两个关于设置vim的tags
选项的答案它开始从当前目录中寻找tags
文件并修复目录树,直到找到一棵。命令看起来像这个。
set tags=./tags;/
这是谈论它的帖子。
- https://stackoverflow.com/a/741486/1175080
- https://stackoverflow.com/a/6289891/1175080
此语法使用半龙建立某种范围搜索目录(即从当前目录开始,然后以根目录(。
在第一个链接中对答案的评论中的事实中,有一个评论说,
如果您进入root Directory,您甚至不需要
/
。只有;
就足够了。
所有这些东西都记录在哪里?我查找了: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
选项一起使用?
我可以在哪里找到可以与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-]>
以查找有关
"*"," **"和其他通配符。