エディタの環境構築 〜vim編〜
今回はエディタのひとつであるvimの環境構築について。
NeoBundleを導入する
プラグインのインストールにはNeoBundleを用いる。
インストール手順は以下の通り。
mkdir -p ~/.vim/bundle git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
設定ファイル~/.vimrcにNeoBundleに関する設定事項を記入する。
以下、記入例。
if has('vim_starting') filetype plugin off filetype indent off execute 'set runtimepath+=' . expand('~/.vim/bundle/neobundle.vim') endif call neobundle#rc(expand('~/.vim/bundle')) NeoBundle 'git://github.com/kien/ctrlp.vim.git' NeoBundle 'git://github.com/Shougo/neobundle.vim.git' NeoBundle 'git://github.com/scrooloose/nerdtree.git' NeoBundle 'git://github.com/scrooloose/syntastic.git' NeoBundle 'Shougo/neocomplcache' NeoBundle 'Shougo/vimshell' "NeoBundle 'supermomonga/vimshell_kawaii' "NeoBundle 'https://github.com/basyura/bitly.vim.git' "NeoBundle 'https://github.com/basyura/TweetVim.git' "NeoBundle 'https://github.com/basyura/twibill.vim.git' "NeoBundle 'https://github.com/h1mesuke/unite-outline.git' "NeoBundle 'https://github.com/mattn/webapi-vim.git' "NeoBundle 'https://github.com/tyru/open-browser.vim.git' "NeoBundle 'https://github.com/yomi322/neco-tweetvim.git' "NeoBundle 'https://github.com/yomi322/unite-tweetvim.git' "NeoBundle 'tpope/vim-fugitive' "NeoBundle 'airblade/vim-gitgutter' "NeoBundle 'itchyny/lightline.vim' syntax on filetype plugin on filetype indent on
次にvimを起動し、NeoBudleのインストールを行う。
vim :NeoBundleInstall
以上がvimを導入した際に初期設定として行ったこと。