vimctagstaglist

how to be able to use C-] with taglist on Vim


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-]


Solution

  • 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.