Skip to content

NeoBundle

NeoBundle is a next generation Vim plugin manager. This plugin is based on Vundle, but I renamed and added tons of features, while Vundle tends to stay simple.

How to install

Setup NeoBundle:

$ mkdir -p ~/.vim/bundle
$ git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim

Configure bundles .vimrc:

" Note: Skip initialization for vim-tiny or vim-small.
if !1 | finish | endif

if has('vim_starting')
  if &compatible
    set nocompatible               " Be iMproved
  endif

  " Required:
  set runtimepath+=~/.vim/bundle/neobundle.vim/
endif

" Required:
call neobundle#begin(expand('~/.vim/bundle/'))

" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'

" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!

call neobundle#end()

" Required:
filetype plugin indent on

" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck

NOSYNC

로컬 플러그인을 관리하는 방법은 아래와 같다.

NeoBundle "unite-qfixhowm", {
\   "base" : "C:/Dropbox/vim/plugin",
\   "type" : "nosync"
\}

Background installation

I found this problem more easily solved by having my plugins listed in a separate file, vundle.vim. This avoids plugins and .vimrc settings which don't play nicely in Ex mode.

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

" Add plugins
Plugin 'bling/vim-airline'
" ...

Then you can run the install in ex mode as below.

$ vim -E -u NONE -S ~/.vim/vundle.vim +PluginInstall +qall > /dev/null

See also

Favorite site