转自:http://blog.csdn.net/jiaolongdy/article/details/17889787/
http://www.cnblogs.com/xia520pi/archive/2014/04/11/3659386.html
1安装
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
2更新.vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" 可以通过以下四种方式指定插件的来源
" a) 指定Github中vim-scripts仓库中的插件,直接指定插件名称即可,插件明中的空格使用“-”代替。
Bundle 'L9'
“ b) 指定Github中其他用户仓库的插件,使用“用户名/插件名称”的方式指定
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" c) 指定非Github的Git仓库的插件,需要使用git地址
Bundle 'git://git.wincent.com/command-t.git'
" d) 指定本地Git仓库中的插件
Bundle 'file:///Users/gmarik/path/to/plugin'
filetype plugin indent on " required!
3安装插件
vim下之行 :BundleInstall
4. 卸载插件
如果要卸载插件就只需要删除.vimrc中的Bundle,然后在Vim中执行
:BundleClean
PS:
:BundleList -列举列表(也就是.vimrc)中配置的所有插件
:BundleInstall -安装列表中的全部插件
:BundleInstall! -更新列表中的全部插件
:BundleSearch foo -查找foo插件
:BundleSearch! foo -刷新foo插件缓存
:BundleClean -清除列表中没有的插件
:BundleClean! -清除列表中没有的插件
set nocompatible " be iMproved
filetype off " required! /** 从这行开始,vimrc配置 **/
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here: /* 插件配置格式 */
"
" original repos on github (Github网站上非vim-scripts仓库的插件,按下面格式填写)
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" vim-scripts repos (vim-scripts仓库里的,按下面格式填写)
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos (非上面两种情况的,按下面格式填写)
Bundle 'git://git.wincent.com/command-t.git'
" ...
filetype plugin indent on " required! /** vimrc文件配置结束 **/
" /** vundle命令 **/
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
附:参考文献
转自 http://blog.csdn.net/jiaolongdy/article/details/17889787/
http://www.cnblogs.com/xia520pi/archive/2014/04/11/3659386.html