vim插件管理工具vundle

1,安装:
$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

2,配置Plugins:
Put this at the top of your .vimrc to use 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()

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

" plugin on GitHub repo
Plugin 'kien/ctrlp.vim'  // 安装CtrlP插件
Plugin 'Valloric/YouCompleteMe'  // 安装 YCM插件  此神器下载后需要进一步编译

" 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/gmarik/path/to/plugin'

call vundle#end()            " required
filetype plugin indent on    " required

" To ignore plugin indent changes, instead use:
"filetype plugin on

3,执行Vundle安装插件
Launch vim and run :BundleInstall  // 注意 processing 等待 个别插件比较耗时
或 命令行执行  vim +PluginInstall +qall

4,帮助:
输入 :h vundle
命令模式输入:
PluginList       - lists configured plugins
PluginInstall    - installs plugins; append `!` to update or just luginUpdate
PluginSearch foo - searches for foo; append `!` to refresh local cache
PluginClean      - confirms removal of unused plugins; append `!` to auto-approve

5,总结
只需要在 ~/.vimrc 中配置 Plugin ,vumble会帮我们把对应的 xx.vim 下载到bundle目录.



你可能感兴趣的:(vim)