在 Windows 上的 gvim 中使用 taglist 插件
我开始在 windows7(64 位)上的 gvim 中使用 taglist 插件,
这是我输入 TlistToggle 时的路径
path of ctags: C:\ctags58
path of gvim: C:\Program Files (x86)\Vim\vim73
,我收到以下错误消息。
Error detected while processing function <SNR>17_Tlist_WIndow_Toggle..<SNR>17_Tlist_Window_Open..<SNR>17_Tlist_Window_Refresh..<SNR>17_Tlist_Window_Refresh_File..<SNR>17_Tlist_Process_File:
E484: Can't open file C:/Users/*username*/AppData/Local/Temp/VIo9212.tmp
Taglist: Failed to generate tags for *path of test.cpp*
E484: Can't open file C:/Users/*username*/AppData/Local/Temp/VIo935B.tmp
Taglist: Failed to generate tags for *path of makefile*
这是斜杠/反斜杠问题吗?
如果是这样,我该如何解决?
im started using taglist plugin in gvim on windows7(64bit)
here is the path
path of ctags: C:\ctags58
path of gvim: C:\Program Files (x86)\Vim\vim73
when i typed TlistToggle, i got following error message.
Error detected while processing function <SNR>17_Tlist_WIndow_Toggle..<SNR>17_Tlist_Window_Open..<SNR>17_Tlist_Window_Refresh..<SNR>17_Tlist_Window_Refresh_File..<SNR>17_Tlist_Process_File:
E484: Can't open file C:/Users/*username*/AppData/Local/Temp/VIo9212.tmp
Taglist: Failed to generate tags for *path of test.cpp*
E484: Can't open file C:/Users/*username*/AppData/Local/Temp/VIo935B.tmp
Taglist: Failed to generate tags for *path of makefile*
is this slash/backslash problem?
if so, how can i solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查您的
shell
和shellcmdflag
选项。我遇到了同样的问题。我在 Windows 机器上安装了 Cygwin,但没有在其下运行 Gvim。然而,由于某种原因,
shell
选项被设置为/bin/bash
,这显然是错误的,所以它当然无法实际运行ctags工具。我必须将覆盖添加到我的_vimrc
中,如下所示:Check your
shell
andshellcmdflag
options.I ran into the same issues. I had Cygwin installed on my Windows machine, but I wasn't running Gvim under it. Yet, for some reason, the
shell
option was set to/bin/bash
, which is obviously wrong, and so of course it couldn't actually run the ctags tool. I had to add the overrides to my_vimrc
like so:您好,这是我在 .vimrc 中针对不同环境的设置:
您可以尝试使用
Tlist_Ctags_Cmd
以这种方式提供 ctags 的路径希望这有帮助。
Hello here is my settings in .vimrc for the different environment I have:
You could try to give the path to ctags in thi way with
Tlist_Ctags_Cmd
Hope this help.