重新加载标签文件Vim
发布时间:2020-12-15 19:11:19 所属栏目:安全 来源:网络整理
导读:我如何从Vim中重新加载标签文件? 是否需要重启? 根据:帮助标签二进制搜索,标签文件在每次查找时搜索二进制(或线性),因此不需要重新加载文件: *tag-binary-search*Vim uses binary searching in the tags file to find the desired tag quickly(when en
我如何从Vim中重新加载标签文件?
是否需要重启?
根据:帮助标签二进制搜索,标签文件在每次查找时搜索二进制(或线性),因此不需要重新加载文件:
*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. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |