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 | 顯示插件列表 |