[英]Reload tags file Vim
如何從Vim中重新加載tags
文件?
是否需要重啟?
根據: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 7.3一旦生成就不會使用tags
文件。
我發現將標簽文件加載到另一個緩沖區/選項卡中會有所幫助。 然后我可以用以下內容重新加載緩沖區:e!
讓vim看到我的標簽更新。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.