坚持在Vim中安装Taglist

时间:2022-12-11 17:14:51

I was trying to install Taglist in VIM and I did not understand this step:

我试图在VIM中安装Taglist,我不明白这一步:

If the exuberant ctags utility is not present in your PATH, then set the Tlist_Ctags_Cmd variable to point to the location of the exuberant ctags utility (not to the directory) in the .vimrc file.

如果PATH中不存在繁琐的ctags实用程序,则将Tlist_Ctags_Cmd变量设置为指向.vimrc文件中的旺盛ctags实用程序(而不是目录)的位置。

What does it mean? If anybody uses this plugin, could you please help me congfigure it?

这是什么意思?如果有人使用这个插件,你能帮我配一下吗?

I downloaded the ctags and set my variable to

我下载了ctags并将我的变量设置为

:let Tlist_Ctags_Cmd='C:\Program Files\Vim\ctags-5.7\ctags.exe'

:让Tlist_Ctags_Cmd ='C:\ Program Files \ Vim \ ctags-5.7 \ ctags.exe'

But Im still getting "cannot generate tags" error.

但我仍然得到“无法生成标签”错误。

2 个解决方案

#1


ctags is a separate program you will need to install on your system.

ctags是您需要在系统上安装的单独程序。

http://ctags.sourceforge.net/

you'll want to look for install instructions for your specific operating system.

您需要查找特定操作系统的安装说明。

Once thats installed you can set that variable as specified if its not in your PATH

安装好后,如果不在PATH中,可以将该变量设置为指定的变量

There is what seems to be thorough installation information here.

这里似乎有完整的安装信息。

http://vim-taglist.sourceforge.net/faq.html

#2


If you've installed ctags and you're still getting the Taglist: Failed to generate tags error like I was, make sure to use this format in your vimrc:

如果你已经安装了ctags并且你仍然得到Taglist:无法像我那样生成标签错误,请确保在vimrc中使用此格式:

let Tlist_Ctags_Cmd = '"C:\Program Files\ctags58\ctags.exe"'

Note the double quotes inside the single quotes. I believe this is necessary when there are spaces in your string, and it's what made things work for me.

请注意单引号内的双引号。我相信当你的字符串中有空格时,这是必要的,这就是让事情适合我的原因。

#1


ctags is a separate program you will need to install on your system.

ctags是您需要在系统上安装的单独程序。

http://ctags.sourceforge.net/

you'll want to look for install instructions for your specific operating system.

您需要查找特定操作系统的安装说明。

Once thats installed you can set that variable as specified if its not in your PATH

安装好后,如果不在PATH中,可以将该变量设置为指定的变量

There is what seems to be thorough installation information here.

这里似乎有完整的安装信息。

http://vim-taglist.sourceforge.net/faq.html

#2


If you've installed ctags and you're still getting the Taglist: Failed to generate tags error like I was, make sure to use this format in your vimrc:

如果你已经安装了ctags并且你仍然得到Taglist:无法像我那样生成标签错误,请确保在vimrc中使用此格式:

let Tlist_Ctags_Cmd = '"C:\Program Files\ctags58\ctags.exe"'

Note the double quotes inside the single quotes. I believe this is necessary when there are spaces in your string, and it's what made things work for me.

请注意单引号内的双引号。我相信当你的字符串中有空格时,这是必要的,这就是让事情适合我的原因。