The problem about ctags
and omnicppcomplete
in vim. Omni
does not show methods of class "string"
. (I had the same problem with STL
library. I solved it by downloading STL
and run ctags
in this folder then set path the tags file.)
How to solve this problem, run ctags
in /usr/include
directory?
To get perfect C/C++/Objective-C code completion, i would recommend you to try Clang Complete.
But if you want to use omnicppcomplete, you need to generate tags for needed class, yes. If you need just "string" class, you can generate tags only for string.h
, not for a whole /usr/include
, to make it faster.
By the way, you might want to use plugin Indexer to get painless automatic tags generation for a whole project(s).