edo1z blog

プログラミングなどに関するブログです

vim - NeoBundleでプラグイン管理する

参考:Vim pluginへの入門[NeoBundle.vim]

NeoBundleはプラグインを管理するやつ。使い方を上記サイトが書いてくれている。

NeoBundleの設定

vimrcに設定を書きます。

" neobundle settings
if has('vim_starting')
    set nocompatible
    " neobundle をインストールしていない場合は自動インストール
    if !isdirectory(expand("~/.vim/bundle/neobundle.vim/"))
        echo "install neobundle..."
        " vim からコマンド呼び出しているだけ neobundle.vim のクローン
        :call system("git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim")
    endif
    " runtimepath の追加は必須
    set runtimepath+=~/.vim/bundle/neobundle.vim/
endif

call neobundle#begin(expand('~/.vim/bundle'))
let g:neobundle_default_git_protocol='https'

NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'nanotech/jellybeans.vim'


NeoBundleCheck
call neobundle#end()
filetype plugin indent on

call neobundle#beginと、call neobundle#end()の間に、NeoBundle 'nanotech/jellybeans.vim'とかって書いていけばいいっぽい。