tags:

views:

122

answers:

2

Hello:

I am trying to configure taglist with vim. I ran :TlistAddFilesRecursive at the root of my java source. Say I have a class

class Foo extends Bar {
}

I place my cursor is on Bar and I do

Ctrl-]
I get

E433: No tags file
E426: tag not found: Bar
Press ENTER or type command to continue

However, if I :TlistToggle and search for Bar then press enter, the class is findable and it opens.

Does anyone know what would cause this?

Thanks.

A: 

Use the easytags plugin: http://www.vim.org/scripts/script.php?script_id=3114


From what I understand using Ctrl-] and Ctrl-t to navigate tags is part of vim itself (NOT Taglist). It gets the information from a tag file that you need to generate using ctags (example ctags -R ). If you generate such a tag file you will see that Ctrl-] works just fine.

Now, what TagList does is show the tags for the currently active file in a sidebar (it uses ctags for this but I don't know where it stores the tags file). If you manually add using TlistAddFilesRecursive it updates its internal tags file with tags from these files. I think the way TagList is supposed to be used is by browsing through the tags in the taglist window and pressing "enter" to jump to the definition.

unixnoob
A: 

Yes, unixnoob. That is right. Taglist is just the visual directory of the tags. Ctrl-] is from ctags. I don't know of a way to use the same tags file for taglist and for ctags. It seems idiotic to have multiple tag files, but to tell you the truth I am not even sure where taglist keeps its tag files.