Reputation: 6625
Is there any plugin for VIM that I can use to index an C++ project code base?
I would apreciate functionalities like being capable of specifing a class and and may be a method and see what file/line the method/class is defined.
Upvotes: 14
Views: 22176
Reputation: 32926
Regarding code navigation (and completion),
I'd take a look at clang_indexer (and clang_complete) -- ctag understanding of C++ code is quite bad, but universal-ctags has greatly improved the situation ; cscope understanding of C++ is non-existent.
Regarding plugins for C++ coding,
I have a suite for C and C++ programming. It is mainly oriented toward C++ programming, however a few, and unique features can be used in C as well:
:GOTOIMPL
;:Override
that searches for overridable functions:DOX
that analyses C++ function signature to generate the appropriate (customizable) doxygen comment (with \param, \throw, ...)Otherwise, I also use:
Other Plugins.
Other people use c.vim, other templating systems (snipmate & co), pyclewn (that I highly recommend for debugging (with gdb) from within vim), other bracket-surrounding-and-expansion systems, ...
PS: I've answered, slightly differently, a question on the same subject on quora.
Upvotes: 23
Reputation: 45662
I use taglist extensively.
The "Tag List" plugin is a source code browser for the Vim editor. It provides an overview of the structure of source code files and allows you to efficiently browse through source code files in different programming languages. It is the top-rated and most-downloaded plugin for the Vim editor.
Upvotes: 2