Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c++, omnicppcomplete doesn't show methods for string

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?

like image 460
ashim Avatar asked Aug 19 '26 04:08

ashim


1 Answers

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

like image 153
Dmitry Frank Avatar answered Aug 21 '26 18:08

Dmitry Frank



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!