作者BCRK7 (K7)
看板Editor
标题[vim ] YouCompleteMe 写C++自动补全问题
时间Wed May 6 22:39:36 2015
最近在设定Vim的Plugin,
我想用它来写C++程式,於是安装了YouCompleteMe这个Plugin。
但我发现我不懂怎麽写.ycm_extra_conf.py,於是就用别人写好的。
但我想要include <iostream> ,
我希望我输入 #include <i 时,他会有个 <iostream> 的选项让我选。
结果他出来的选项都是一些不重要的东西。
http://imgur.com/a1cb90T
请问有办法让他侦测我的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 ... 以此类推。
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.46.50.48
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Editor/M.1430923180.A.22A.html
※ 编辑: BCRK7 (114.46.50.48), 05/07/2015 02:37:42