简体   繁体   中英

Youcompleteme plugin for vim fails to provide completion for error codes from errno.h

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?

通过进一步的谷歌搜索,我发现可以使用(Ctrl-Space)获得宏完成。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM