简体   繁体   English

vim TagList仅在Ctags58文件夹中生成标签

[英]vim TagList only generate tags in the Ctags58 folder

I'm in windows XP, and the vim TagList plugin only behaves correctly if the file I'm coding in is inside the Ctag58 folder. 我在Windows XP中,仅当我正在编码的文件位于Ctag58文件夹内时,vim TagList插件才能正常运行。 Otherwise it just genetats a list of my open files without tags. 否则,它只会生成没有标签的打开文件列表。

I've tried adding the catalog to path and the vim command :let Tlist_Ctags_Cmd='C:\\Program\\Ctags58\\ctags.exe' and it didn't work but then in. 我尝试将目录添加到路径和vim命令中:let Tlist_Ctags_Cmd ='C:\\ Program \\ Ctags58 \\ ctags.exe',它不起作用,但随后进入了。

I went through the the taglist FAQ: 我通过了标签列表常见问题解答:

But the last to "dots" of part 1. of the http://vim-taglist.sourceforge.net/faq.html were they speak of temp and tmp variables . 但是http://vim-taglist.sourceforge.net/faq.html的第1部分中最后一个“点”是它们提到的temp和tmp变量。 I can't make heads or tails of that part. 我不能做那部分的正面或反面。 Could this be my problem? 这可能是我的问题吗? How do i tell... 我怎么知道...

Mmmm the question is not exactly clear ('it just genetats the file catalog' -- sure, that makes sense). 嗯,这个问题还不是很清楚(“它只是生成了文件目录”,当然,这是有道理的)。

Without looking any further I'd suggest you add the path to the ctags.exe executable to your environment ( Win + Break , advanced, environment, current user, PATH, edit, append ;C:\\Program Files\\Wherever\\ctags\\bin (of course you'd have to use the ACTUAL path not this sample). 我不建议您进一步将ctags.exe可执行文件的路径添加到您的环境( Win + Break ,高级,环境,当前用户,PATH,编辑,追加;C:\\Program Files\\Wherever\\ctags\\bin (当然,您必须使用ACTUAL路径而不是此示例)。

Then you'd need to restart VIM to test it 然后,您需要重新启动VIM进行测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM