Vimプラグインの管理

以前、Vimプラグインの管理でpathogenについて書きましたが(Vimで快適なRails開発をはじめるまで - t.taira blog)、
Vundleの方が簡単だったので乗り換えました。

$ cd ~
$ mv .vim .vim_bk
$ mkdir .vim
$ cd .vim
$ git clone git://github.com/gmarik/vundle.git

※Macの場合、gitコマンドはXcodeをインストールすると使用できるようになります。


~/.vimrc

set nocompatible
filetype off

set rtp+=~/.vim/vundle/
call vundle#rc()

" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-haml'
Bundle 'tpope/vim-surround'
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-rails'
Bundle 'scrooloose/nerdtree'
Bundle 'scrooloose/nerdcommenter'
Bundle 'Shougo/neocomplcache'
Bundle 'Shougo/unite.vim'
Bundle 'csexton/rvm.vim'
Bundle 'altercation/vim-colors-solarized'
Bundle 'cucumber/cucumber'
Bundle 'kchmck/vim-coffee-script'
Bundle 'thinca/vim-quickrun'
Bundle 'tomasr/molokai'
Bundle 'Shougo/vimshell'
Bundle 'Shougo/vimproc'
Bundle 'leshill/vim-json'
Bundle 'mattn/zencoding-vim'
Bundle 'gmarik/snipmate.vim'
Bundle 'pix/vim-align'
Bundle 'tsaleh/vim-tcomment'

filetype plugin indent on

vimを起動して、「:BundleInstall」でプラグインを取得してインストールしてくれます。
すごく簡単!


:Source
Vim-users.jp - Hack #215: Vundle で plugin をモダンに管理する