vim - 重新加载标签文件 Vim

标签 vim tags ctags

我如何重新加载 tags Vim 中的文件?

是否需要重新启动?

最佳答案

根据 :help tag-binary-search ,标签文件在每次查找时都是二进制(或线性)搜索,因此无需重新加载文件:

                                                        *tag-binary-search*
Vim uses binary searching in the tags file to find the desired tag quickly
(when enabled at compile time |+tag_binary|).  But this only works if the
tags file was sorted on ASCII byte value.  Therefore, if no match was found,
another try is done with a linear search.  If you only want the linear search,
reset the 'tagbsearch' option.  Or better: Sort the tags file!

Note that the binary searching is disabled when not looking for a tag with a
specific name.  This happens when ignoring case and when a regular expression
is used that doesn't start with a fixed string.  Tag searching can be a lot
slower then.  The former can be avoided by case-fold sorting the tags file.
See 'tagbsearch' for details.

关于vim - 重新加载标签文件 Vim,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4829800/

相关文章:

python - 从对中创建 pandas 数据框的快速方法

vim - ctags:防止跳转到 ctrl + ] 的第一个结果

vim - 如何使用 vim-fugitive 暂存所有修改过的文件和新文件

startup - 如何查看启动时使用的 vimrc 文件

tags - OpenTsdb 中允许的最大标签数

php - Mysql - 存储标签和搜索确切标签的最佳方式

ruby-on-rails - 如何导航到 Sublime Text 中 Ruby on Rails 方法的方法声明?

c++ - 如何修改 CTAGS 生成的标记文件的默认分隔符

perforce - 如果在 vim 中写入只读文件,如何自动打开文件进行编辑?

Vim 缩写,带有数组的随机结果?