安装YouComplete

安装vim

去官网下载vim源码

解压之后  

sudo apt-get install -y build-essential

sudo apt-get install libncurses5-dev

./configure --with-features=huge --enable-gui=auto --enable-gtk2-check --enable-gnome-check --with-x --enable-python3interp \

--enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ --enable-rubyinterp \

--enable-luainterp --enable-perlinterp --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/ \

--enable-multibyte --enable-cscope --enable-gui=gnome2 --prefix=/usr

sudo make

sudo make install

配置~/.vimrc

Plugin 'Valloric/YouCompleteMe' " 自动补全

然后PluginInstall

sudo apt-get install python-dev python3-dev cmake

下载文件:http://releases.llvm.org/3.7.0/clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz         (clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04.tar.gz)   移动至~/.vim/bundle/YouCompleteMe/third_party/ycmd/clang_archives目录下

python install.py --all(默认不安装C语言的补全)

进入.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer

sudo apt-get install mono-xbuild

sudo apt-get install -y libmono-system-xml-linq4.0-cil

sudo apt-get install -y libmono-microsoft-csharp4.0-cil

sudo apt-get install -y libmono-system-data-datasetextensions4.0-cil

sudo apt-get install libssl1.0-dev

xbuild

你可能感兴趣的:(安装YouComplete)