tags:

views:

226

answers:

1

I am using Taglist plugin in vim. In the taglist window i can see tags like namespaces, classes, struct, function but not variables. I saw a screenshot(attached below) on Taglist website which had this info. I am using Vim 7 and Exuberant Ctags 5.8, and i have generated my ctags using this command

ctags --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++

alt text

+1  A: 

As far as I know, the Taglist plugin shows only the variables which have file scope. It does not show variables which have only function scope.

For a quick test just add a variable of any type at the start of your source file, save the source file, set cursor into the taglist window and press u to update taglist. Now this variable should appear in the taglist window. This works for my C files.

By the way:

... and i have generated my ctags using this command

ctags --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++

Do you mean that you generate your own tags file for the taglist plugin using these ctags options? To my knowledge taglist uses its own ctags options and generates a temporary tag file. The user has no influence on the ctags options and the tags file.

Habi
Does it show the class variables
Yogesh Arora