[vim ] YouCompleteMe 写C++自动补全问题

楼主: BCRK7 (K7)   2015-05-06 22:39:36
最近在设定Vim的Plugin,
我想用它来写C++程式,于是安装了YouCompleteMe这个Plugin。
但我发现我不懂怎么写.ycm_extra_conf.py,于是就用别人写好的。
但我想要include <iostream> ,
我希望我输入 #include <i 时,他会有个 <iostream> 的选项让我选。
结果他出来的选项都是一些不重要的东西。

请问有办法让他侦测我的library吗?
我的.ycm_extra_conf.py
https://github.com/Kai7/.vim/blob/master/.ycm_extra_conf.py
另外,我在看YouCompleteMe的文件时,有句话我不懂他的意思。
YCM looks for a .ycm_extra_conf.py file in the directory of the opened file or in any directory above it in the hierarchy (recursively)
我把他理解成,假设我在 /home/user/cpp/ 底下写 hello.cpp 时,他会先找 /home/user/cpp/ 底下有没有.ycm_extra_conf.py,
没有的话再往上找 /home/user ... 以此类推。

Links booklink

Contact Us: admin [ a t ] ucptt.com