簡單vi配置:YouCompleteMe
下圖就是我的VI;
按F5 F6分別調出左右的窗體;
按C-P點出CtrlP搜索,直接查找project中的文件;
自己主動補全用的YouCompleteMe。超級強悍;
https://github.com/humiaozuzu/dot-vimrc
https://github.com/spf13/spf13-vim
https://github.com/amix/vimrc
。
我就是先依據第一個連接做的。
然後又增加了下面改動(是不是非常懶 哈哈哈):
在.vimrc 中增加下面代碼:
Bundle ‘Valloric/YouCompleteMe’
保存退出後,打開vim 在命令模式下,輸入以下的命令:
:BundleInstall
等待vundle將YCM安裝完畢。然後進行編譯安裝
#cd ~/.vim/bundle/YouCompleteMe
#./install –clang-completer
提示err:
Some folders in~/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party are empty;you probablyforgot to run:git submodule update –init –recursive
依照提示輸入命令就可以:
# git submodule update –init –recursive
等待命令更新完畢後,在繼續前面的命令假設要支持C# 也能夠增加--omnisharp-completer
#./install--clang-completer –omisharp-completer
提示err:
CMAKE_CXX_COMOILER-NOTFOUND
輸入下面命令解決:
#apt-getinstall g++
#cmake –DCMAKE_CXX_COMPILER=”g++” CMAKE –D CMAKE_BUILD_TYPE=Release –DCMAKE_INSTALL_PREFIX=”/usr/local”
提示err:
Cmake “couldnot find pythonlibs”
輸入下面命令解決:
#apt-getinstall python-dev
然後在運行 安裝就OK了
配置
配置文件在:
/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py
特將vimrc上傳:
http://download.csdn.net/detail/maoyongf2008/8899641
簡單vi配置:YouCompleteMe