Reputation: 15789
I have gVim 7.3 with taglist and ctags 5.8 on windows. Taglist is working nicely (without the need to generate the tags file myself), I can see the tags of the current buffer in the tags window and go to any of them etc.
But I understand that I should be able to use C-]
in the editor to go to a declaration under the cursor too, this is not working, it keeps saying
E433: No tags file
E426: tag not found: myMethod **strong text**
What should I do to be able to use C-]
Upvotes: 1
Views: 2103
Reputation: 196886
TagList is a third party plugin completely separated from Vim's <C-]>
and related commands. Because it doesn't generate a tags
file or even uses a tags
file it operates in its own bubble.
<C-]>
is a native Vim command that uses a tags
file that you need to generate with a command like :!ctags -R .
and that you must make sure it is known by Vim.
Upvotes: 3
Reputation: 1154
Your error message means you need to tell VIM where your tags file is. Try
set tags="your file name"
you may specify more than one file name, using comma as separator
By the way, another alternative to C-] is g-]. Instead of jumping right away, it shows a list of the different matches.
Upvotes: 0