vim插件管理工具vundle

1,安装:

$gitclonehttps://github.com/gmarik/Vundle.vim.git~/.vim/bundle/Vundle.vim

2,配置Plugins:

Putthisatthetopofyour.vimrctouseVundle.

配置片段:

setnocompatible"beiMproved,required

filetypeoff"required

"settheruntimepathtoincludeVundleandinitialize

setrtp+=~/.vim/bundle/Vundle.vim

callvundle#begin()

"letVundlemanageVundle,required

Plugin'gmarik/Vundle.vim'

"pluginonGitHubrepo

Plugin'kien/ctrlp.vim'//安装CtrlP插件

Plugin'Valloric/YouCompleteMe'//安装YCM插件此神器下载后需要进一步编译

"pluginfromhttp://vim-scripts.org/vim/scripts.html

Plugin'L9'

"GitpluginnothostedonGitHub

Plugin'git://git.wincent.com/command-t.git'

"gitreposonyourlocalmachine(i.e.whenworkingonyourownplugin)

Plugin'file:///home/gmarik/path/to/plugin'

callvundle#end()"required

filetypepluginindenton"required

"Toignorepluginindentchanges,insteaduse:

"filetypepluginon

3,执行Vundle安装插件

Launchvimandrun:BundleInstall//注意processing等待个别插件比较耗时

或命令行执行vim+PluginInstall+qall

4,帮助:

输入:hvundle

命令模式输入:

PluginList-listsconfiguredplugins

PluginInstall-installsplugins;append`!`toupdateorjustluginUpdate

PluginSearchfoo-searchesforfoo;append`!`torefreshlocalcache

PluginClean-confirmsremovalofunusedplugins;append`!`toauto-approve

5,总结

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

相关推荐