- sudo apt-get install build-essential cmake python-dev
- cd ~/.vim/bundle/
- git clone https://github.com/Valloric/YouCompleteMe.git
- cd ~/.vim/bundle/YouCompleteMe
- git submodule update --init --recursive
- ./install.py
到此YCM 已安裝完成
- mkdir ~/.vim/colors
- mv molokai.vim ~/.vim/colors
- mv .vimrc $HOME
新增python3 安裝方法
sudo apt-get install python3-dev cmake
mkdir ~/.vim
mkdir ~/.vim/bundle
cd ~/.vim/bundle/
git clone https://github.com/Valloric/YouCompleteMe.git
cd ~/.vim/bundle/YouCompleteMe
git submodule update --init --recursive
./install.py
mkdir ~/.vim/colors
cp molokai.vim ~/.vim/colors
cp .vimrc $HOME
or
wget https://raw.githubusercontent.com/dyeat/Vim-YouCompleteMe/master/vim-install.sh
chmod +x vim-install.sh
./vim-install.sh