打开终端,执行下面的命令就自动安装好了:
wget -qO- https://raw.github.com/fusiqing/vim-deprecated/master/setup.sh | sh -x
- 安装vim
sudo apt-get install vim
- 安装ctags:
sudo apt-get install ctags
- 安装一些必备程序:
sudo apt-get install xclip vim-gnome astyle python-setuptools
- python代码格式化工具:
sudo easy_install -ZU autopep8
sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
- clone配置文件:
cd ~/ && git clone git://github.com/fusiqing/vim-deprecated.git
mv ~/vim ~/.vim
mv ~/.vim/.vimrc ~/
- clone bundle 程序:
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
- 打开vim并执行bundle程序
:BundleInstall
- 重新打开vim即可看到效果
2.安装YouCompleteMe
- YouCompleteMe在BundleInstall之后需要编译,编译过程如下:
- 安装cmake
- 进入/.vim/bundle/vundle/YouCompleteMe目录
- git submodule update --init --recursive
- python3 install.py --clang-completer --go-completer