安装vim的插件管理器vundle

1.安装vundle

  git clone https://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'

" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
" git repos on your local machine (ie. when working on your own plugin)
Bundle 'file:///Users/gmarik/path/to/plugin'
" ...

filetype plugin indent on " required!
"
" 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.

3.以上设置说明

  

4.安装你的插件

(1)保存退出当前的vim
(2)重新打开vim,输入命令:BundleInstall,然后就开始安装你的插件了。

5.如何移除插件

(1)编辑.vimrc文件移除的你要移除的插件行
(2)保存退出当前的vim
(3)重新打开vim,输入命令:BundleClean

posted @ 2016-03-28 00:35  木_木_木  阅读(80)  评论(0)    收藏  举报