首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >重新加载标记文件Vim

重新加载标记文件Vim
EN

Stack Overflow用户
提问于 2011-01-28 23:18:34
回答 3查看 10.2K关注 0票数 24

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

是否需要重新启动?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2011-01-29 08:03:34

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

代码语言:javascript
复制
                                                        *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.
票数 19
EN

Stack Overflow用户

发布于 2011-01-28 23:24:08

据我所知,Vim7.3没有必要在生成tags文件后立即使用它。

票数 4
EN

Stack Overflow用户

发布于 2014-07-02 22:42:04

我发现只需将标记文件加载到另一个缓冲区/选项卡中会有所帮助。然后,我可以使用:e!重新加载该缓冲区,让vim查看我的标记更新。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4829800

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档