测试环境ubuntu 14.04。
1、检测安装环境是否支持;
检测vim版本是否在7.3.598及以上,是否安装有python2或python3;如果版本低请自行安装;
2、安装开发工具和cmake;sudo apt-get install build-essential cmake
安装python头文件;sudo apt-get install python-dev python3-dev.
3、安装vim插件管理工具vundle;
3.1克隆源码到本地;
家目录下执行:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
3.2在vimrc加入vundle配置代码;
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin &