[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