vimのNeoBundle導入
Vimのプラグイン管理をするため、NeoBundleを導入したので、メモ。
NeoBundle用のディレクトリを作成
$ mkdir -p ~/.vim/bundle
NeoBundleをgithubからclone
$ git clone http://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
.vimrc編集
" viとの互換性OFF set nocompatible " ファイル形式の検出を無効にする filetype off if has('vim_starting') set runtimepath+=~/.vim/bundle/neobundle.vim call neobundle#rc(expand('~/.vim/bundle')) endif " github にあるプラグイン NeoBundle 'Shougo/neocomplcache' NeoBundle 'Shougo/neosnippet' NeoBundle 'Shougo/unite.vim' NeoBundle 'vim-ruby/vim-ruby' NeoBundle 'scrooloose/nerdtree' NeoBundle 'tpope/vim-rails' NeoBundle 'tpope/vim-surround' " vim-scripts プラグイン NeoBundle 'dbext.vim' NeoBundle 'pathogen.vim' " github にないプラグイン " ファイル形式検出、プラグイン、インデントを ON filetype plugin indent on
vimを起動し、以下を実行
:NeoBundleInstall
これで、~/.vimrc上でNeoBundleに設定したプラグインをインストールされる。