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 :PluginUpdate
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目录.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值