2011-01-28 4 views
18

Vim에서 tags 파일을 어떻게 다시로드합니까?Reload tags file Vim

다시 시작해야합니까?

+0

다시로드 할 필요가 없으므로 vim은 메모리에 유지하지 않습니다. 태그를 찾을 때마다 파일의 일부 바이너리 검색을 수행합니다. – Benoit

+0

이전에, 새로운'tags' 파일을 적용하려면 Vim을 다시 시작해야합니다. Vim 버전 :'7.2' –

+0

여러 개의 하위 태그에 여러 개의 태그 파일이 있었는데 잘못 재생성했을 수 있습니까? – jberryman

답변

17

: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. 
+0

죄송 합니다만, 견적서에 명시된 부분은 무엇입니까? – asymmetric

+0

필자는 그것이 묵시적이라고 생각합니다. (어떤 점에서 파일이 메모리에로드 된 경우 태그 파일에서 이진 검색이 필요합니까?) – jrdioko

4

필자가 아는 한 Vim 7.3은 생성 된 즉시 tags 파일을 사용합니다.

0

은 버퍼/탭. 그런 다음 :e!으로 해당 버퍼를 다시로드하여 vim에서 내 태그 업데이트를 볼 수 있습니다.