Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stuck in installing Taglist in Vim

Tags:

vim

plugins

tags

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

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.

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

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

But Im still getting "cannot generate tags" error.

like image 362
unj2 Avatar asked May 12 '09 04:05

unj2


2 Answers

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

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

There is what seems to be thorough installation information here.

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

like image 158
michael Avatar answered Oct 08 '22 05:10

michael


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:

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.

like image 36
feedbackloop Avatar answered Oct 08 '22 04:10

feedbackloop