This complements the plug-in from the name to see very greasy harm ~
- System environment: Ubuntu64, ready to install Youcompleteme
- Confirm Vim Version: Open vim to see the version number, need to be greater than 7.4.143
- Confirm that Vim supports Python: Enter vim, input: Echo has (' python ') | | Has (' Python3 '), the result needs to be 1
- Installing Vundle:git clone Https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle.vim
- To edit ~/.VIMRC, install various plugins using Vundle:
1 set nocompatible 2 filetype off 3 set Rtp+=~/.vim/bundle/vundle.vim 4 call Vundle#begin () 5 Plugin " Vundlevim/vundle.vim " 6 Plugin Span style= "COLOR: #800000" > " valloric/youcompleteme " 7 call Vundle#end () Span style= "COLOR: #008080" >8 filetype plugin indent on
- re-open vim, enter: Plugininstall, wait for the done! successful installation flag to appear.
- Download pre-built Binaries (CLANG+LLVM) from http://llvm.org/releases/download.html, unzip into the directory and copy to the system directory, then configure the soft link, Finalizing the clang version number indicates that Clang is the latest version of
1 tar ZXVF Clang+llvm-3.7 . 0 -amd64-ubuntu-14.04 ... tar .gz 2 cd clang+llvm-3.7 . 0 -amd64-ubuntu-14.04 3 sudo CP -R */usr/4 sudo ln -sf/usr/bin/clang++/etc/alternatives/c++5 clang--version
-
Compile youcompleteme
1 CD ~/.vim/bundle/ youcompleteme 2 mkdir Build 3 CD build 4 cmake-g " unix makefiles "-duse_system_libclang=on. ~/.vim/bundle/youcompleteme/third_party/ycmd/cpp 5 make ycm_core-j4
Configuration. ycm_extra_conf.py
1 echo | Clang-v-e-x C + +-2 vim ~/.vim/bundle/youcompleteme/third_party/ycmd/cpp/ycm/. Ycm_extra_ conf.py3 Insert Flags: ' Isystem'/usr/include/, (writes the Echo result, the last one does not ', ')
- Configuration. VIMRC
1 ' ~/.vim/bundle/youcompleteme/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py '
Well, the installation is here, the use of the specific will often be used to check the
Youcompleteme-vim Complete plug-in installation