github: Shougo/neobundle.vim
如果只有2、3个插件的话,完全没有必要如此兴师动众。但编程语言这么多,外加各种格式的文本文件,插件也就多如牛毛了。插件都是在不断进化当中,当插件上了两位数,更新插件也就变成一项繁琐的工作。因此各种插件管理工具应运而生,pathogen出世了, vundle诞生了…… 为什么选NeoBundle呢? 只因为在人群中多看了一眼。
话说NeoBundle是从vundle分离出来的,继承了vundle的很多优点。不过vundle没用过,就不多说了。总之,使用NeoBundle安装和更新插件都非常简单。比如vim-swift.vim在https://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 | 显示插件列表 |