Vimの簡易設定
Posted by on 14th, 2009
Pythonのコードを書くにはこんな感じがよさそう。
Pythonに限らず、プラグインの対応状況からいくとPerlやRubyでも使えそう。
sudo aptitude install vim-full
.vimrc
set nu sw=4 ts=4 sts=4 hlsearch showmatch backspace=indent,eol,start
let g:treeExplVertical=1
autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai sw=2 ts=2 sts=2
autocmd BufRead,BufNewFile *.py imap
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocomplpop.vim – vimグループ
http://vim.g.hatena.ne.jp/keyword/autocomplpop.vim
“.”(ドット)を打つと補完してくれます。
vtreeexplorer – tree based file explorer – the original : vim online
http://www.vim.org/scripts/script.php?script_id=184
こっちはvimの左側にファイルをツリー表示してくれる。
.vimrc内の”let g:treeExplVertical=1″はこのオプション。