neobundleのインストール
mkdir -p ~/.vim/bundle git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
辞書ファイルのダウンロード
設定ファイルを編集
.vimrc
set nonumber set tabstop=4 set nocompatible set t_Co=256 set title filetype off if has('vim_starting') set runtimepath+=~/.vim/bundle/neobundle.vim call neobundle#rc(expand('~/.vim/bundle')) endif "php autocmd BufRead *.php\|*.ctp\|*.tpl :set dictionary=~/.vim/dict/php.dict filetype=php "=================================================== " ここにインストールしたいプラグインのリストを書く "=================================================== NeoBundleFetch 'Shougo/neobundle.vim' NeoBundle 'Shougo/unite.vim' NeoBundle 'ujihisa/unite-colorscheme' NeoBundle 'nanotech/jellybeans.vim' NeoBundle 'vim-jp/vimdoc-ja' NeoBundle 'Shougo/neocomplcache.vim' NeoBundle 'Shougo/neosnippet.vim' NeoBundle 'Shougo/neosnippet-snippets' NeoBundle 'scrooloose/syntastic' NeoBundle 'bling/vim-airline' NeoBundle 'sjl/badwolf' NeoBundle 'tomasr/molokai' NeoBundle 'Shougo/vimfiler.vim' NeoBundle 'osyo-manga/vim-over' NeoBundle 'mattn/zencoding-vim' filetype plugin on filetype indent on NeoBundleCheck colorscheme badwolf imap <C-k> <Plug>(neosnippet_expand_or_jump) let g:neocomplcache_enable_at_startup = 1 let g:neocomplcache_enable_camel_case_completion = 1 let g:neocomplcache_enable_underbar_completion = 1 let g:neocomplcache_smart_case = 1 let g:neocomplcache_min_syntax_length = 3 let g:neocomplcache_manual_completion_start_length = 0 let g:neocomplcache_caching_percent_in_statusline = 1 let g:neocomplcache_enable_skip_completion = 1 let g:neocomplcache_skip_input_time = '0.5'
一度vimを閉じて、再度起動
[root@localhost ~]# vim Not installed bundles: ['unite-colorscheme', 'vim-airline', 'unite.vim', 'neosnippet-snippets', 'vimdoc-ja', 'molokai', 'syntastic', 'jellybeans.vim', 'vimfiler.vim', 'badwolf', 'vim-over', 'zencoding-vim', 'neosnippet.vim', 'neocomplcache.vim'] Install bundles now? (y)es, [N]o: y [neobundle/install] Update started: (2014/03/10 21:54:04) [neobundle/install] ( 1/14): |neocomplcache.vim| git clone --recursive https://github.com/Shougo/neocomplcache.vim.git "/root/.vim/bundle/neocomplcache.vim" [neobundle/install] ( 2/14): |neosnippet.vim| git clone --recursive https://github.com/Shougo/neosnippet.vim.git "/root/.vim/bundle/neosnippet.vim" [neobundle/install] ( 3/14): |zencoding-vim| git clone --recursive https://github.com/mattn/zencoding-vim.git "/root/.vim/bundle/zencoding-vim" [neobundle/install] ( 4/14): |vim-over| git clone --recursive https://github.com/osyo-manga/vim-over.git "/root/.vim/bundle/vim-over" [neobundle/install] ( 1/14): |neocomplcache.vim| Updated [neobundle/install] |neocomplcache.vim| -> da44ba4a92eef3860bdee2d96d755a7171889a70 [neobundle/install] ( 2/14): |neosnippet.vim| Updated [neobundle/install] |neosnippet.vim| -> de82d40911456ef8a28559078993443186ffc624 [neobundle/install] ( 3/14): |zencoding-vim| Updated [neobundle/install] |zencoding-vim| -> 83a283b17c1d680ff648d577add77055a7a14c54 [neobundle/install] ( 4/14): |vim-over| Updated [neobundle/install] |vim-over| -> 1558d947f83d957a90a45e7bbab72d8e697c420d [neobundle/install] ( 5/14): |badwolf| git clone --recursive https://github.com/sjl/badwolf.git "/root/.vim/bundle/badwolf" [neobundle/install] ( 6/14): |vimfiler.vim| git clone --recursive https://github.com/Shougo/vimfiler.vim.git "/root/.vim/bundle/vimfiler.vim" [neobundle/install] ( 7/14): |jellybeans.vim| git clone --recursive https://github.com/nanotech/jellybeans.vim.git "/root/.vim/bundle/jellybeans.vim" [neobundle/install] ( 8/14): |syntastic| git clone --recursive https://github.com/scrooloose/syntastic.git "/root/.vim/bundle/syntastic" [neobundle/install] ( 5/14): |badwolf| Updated [neobundle/install] |badwolf| -> e6fdf1844ac7fe9f479f93846081f9294eb992c0 [neobundle/install] ( 6/14): |vimfiler.vim| Updated [neobundle/install] |vimfiler.vim| -> c77757fb688329cfd45a1f48f155a2cb975294ec [neobundle/install] ( 7/14): |jellybeans.vim| Updated [neobundle/install] |jellybeans.vim| -> 0761708c890becd3e027551068e0ae272da003e0 [neobundle/install] ( 8/14): |syntastic| Updated [neobundle/install] |syntastic| -> da6520c69f6556113d791056b7f7956ed39e9019 [neobundle/install] ( 9/14): |molokai| git clone --recursive https://github.com/tomasr/molokai.git "/root/.vim/bundle/molokai" [neobundle/install] (10/14): |vimdoc-ja| git clone --recursive https://github.com/vim-jp/vimdoc-ja.git "/root/.vim/bundle/vimdoc-ja" [neobundle/install] (11/14): |neosnippet-snippets| git clone --recursive https://github.com/Shougo/neosnippet-snippets.git "/root/.vim/bundle/neosnippet-snippets" [neobundle/install] (12/14): |unite.vim| git clone --recursive https://github.com/Shougo/unite.vim.git "/root/.vim/bundle/unite.vim" [neobundle/install] ( 9/14): |molokai| Updated [neobundle/install] |molokai| -> 6255227e44d8d86e073f7aaadfacd62119d55af5 [neobundle/install] (10/14): |vimdoc-ja| Updated [neobundle/install] |vimdoc-ja| -> 407f54161fb038ee7fd0c4bb2083182b82178a92 [neobundle/install] (11/14): |neosnippet-snippets| Updated [neobundle/install] |neosnippet-snippets| -> 281c851275c9b4e3c42bbb383d3e9c5d42c66786 [neobundle/install] (12/14): |unite.vim| Updated [neobundle/install] |unite.vim| -> 48de06af40503becdb21342a8a63a7752b1aadf3 [neobundle/install] (13/14): |vim-airline| git clone --recursive https://github.com/bling/vim-airline.git "/root/.vim/bundle/vim-airline" [neobundle/install] (14/14): |unite-colorscheme| git clone --recursive https://github.com/ujihisa/unite-colorscheme.git "/root/.vim/bundle/unite-colorscheme" [neobundle/install] (13/14): |vim-airline| Updated [neobundle/install] |vim-airline| -> 799e5e028fc48f8035cabef1eb92b02a2d52cbfa [neobundle/install] (14/14): |unite-colorscheme| Updated [neobundle/install] |unite-colorscheme| -> 3aa33866a183f7659594a3f6b66b2334eaebc6a0 [neobundle/install] Installed/Updated bundles: neocomplcache.vim neosnippet.vim zencoding-vim vim-over badwolf vimfiler.vim jellybeans.vim syntastic molokai vimdoc-ja neosnippet-snippets unite.vim vim-airline unite-colorscheme 続けるにはENTERを押すかコマンドを入力してください
ソース編集する場合
「:VimFiler -split -simple -winwidth=35 -no-quit」でIDEっぽくなる
参考
http://mzhs.hatenablog.com/entry/2014/02/14/204415
http://c-brains.jp/blog/wsg/13/02/27-102230.php
http://tech.basicinc.jp/PHP/2013/06/17/vim-php/
まとめ
まだ、ほとんど使えていないのでソースを作成しながら慣らしていく。
拡張子とかで設定内容を切り替えられるかな…
プラグインで結構見た目や補完などを対応できたので結構便利な感じ…まわりにvim使いというかコマンドラインエディタ使いがいないのでちょっと手間取りそう。
PHPエンジニア養成読本 〔現場で役立つイマドキ開発ノウハウ満載! 〕 (Software Design plus)
- 作者: 新原雅司,原田康生,小山哲志,田中久輝,保科一成,大村創太郎,増永玲,PHPエンジニア養成読本編集部
- 出版社/メーカー: 技術評論社
- 発売日: 2013/09/13
- メディア: 大型本
- この商品を含むブログ (2件) を見る
- 作者: Drew Neil,新丈径
- 出版社/メーカー: アスキー・メディアワークス
- 発売日: 2013/08/29
- メディア: 単行本(ソフトカバー)
- この商品を含むブログ (10件) を見る