Reputation: 444
I've never used vim at work, only starting to familiarize myself with it and so far like it very much.
For YouCompleteMe plugin to work for my test project I took .ycm_extra_conf.py file from here and added '-I/usr/include' and 'path/to/my/project/' to flags. It works very well, it can complete even c++11's auto
types!
But I couldn't make it complete error codes like EINTR
, EAGAIN
, etc., that are supposed to be visible after #include <errno.h>
If I call :YcmComplete GoToDeclaration
with my cursor being on EINTR
, it's declaration is correctly found however...
Is there a solution?
Upvotes: 0
Views: 112
Reputation: 444
By further googling I found out that macro completion can be obtained with (Ctrl-Space).
Upvotes: 1