[Vundle](https://github.com/VundleVim/Vundle.vim) 是一个为 VIM 设计的插件管理器,
这个名字其实就是 VIM Bundle 的缩写。
第一步是下载 Vundle.vim 文件,可以直接从 GitHub 上克隆:
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
首先要加载 Vundle,要为 VIM 的 runtime path 添加指向 Vundle.vim 的路径,
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 'gmarik/Vundle.vim'
接着指定需要哪些插件 (plugins)
" 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 'file:///home/jedichenbin/.vim/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" The powerline plugin
Plugin 'Lokaltog/powerline', {'rtp': '/Library/Python/2.7/site-packages/powerline/bindings/vim/'}
配置好之后就可以启用 filetype 了。
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on

一旦配置好了 `.vimrc` 文件就可以安装插件了。启动 vim 之后执行 `:PlugiInstall` 命令即可。下面是一些常用的命令:
+ `:PluginList`
lists configured plugins
+ `:PluginInstall`
installs plugins; append `!` to update or just :PluginUpdate
+ `:PluginSearch foo`
searches for foo; append `!` to refresh local cache
+ `:PluginClean`
confirms removal of unused plugins; append `!` to auto-approve removal
需要更多的帮助信息的话可以使用 `:h vundle`
评论