使用NeoBundle管理vim插件

github: Shougo/neobundle.vim

如果只有2、3个插件的话,完全没有必要如此兴师动众。但编程语言这么多,外加各种格式的文本文件,插件也就多如牛毛了。插件都是在不断进化当中,当插件上了两位数,更新插件也就变成一项繁琐的工作。因此各种插件管理工具应运而生,pathogen出世了, vundle诞生了…… 为什么选NeoBundle呢? 只因为在人群中多看了一眼。

话说NeoBundle是从vundle分离出来的,继承了vundle的很多优点。不过vundle没用过,就不多说了。总之,使用NeoBundle安装和更新插件都非常简单。比如vim-swift.vimhttps://github.com/toyamarinyon/vim-swift, 只需在~/.vimrc添加如下一行就可以了:

NeoBundle 'toyamarinyon/vim-swift'

Neobgndlecheck检查vim-swift没有安装,就会默默从github上下载,将它放到~/.vim/bundle

使用NeoBundle

安装

$ curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > install.sh
$ sh ./install.sh

配置~/.vimrc

"NeoBundle start
if has('vim_starting')
  if &compatible
    set nocompatible
  endif
  " Required:
  set runtimepath+=~/.vim/bundle/neobundle.vim/
endif

call neobundle#begin(expand('~/.vim/bundle/'))
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'toyamarinyon/vim-swift'
NeoBundle 'plasticboy/vim-markdown'
call neobundle#end()
filetype plugin indent on
"NeoBundle end

命令

命令含义
NeoBundleInstall安装(更新)
NeoBundleCheck检查(是否有未安装)
NeoBundleList显示插件列表
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值