$HOME/.vimrcに以下を書く。syntax hilightなど。 autocmd FileType python setl autoindent
autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd FileType python setl tabstop=8 expandtab shiftwidth=4 softtabstop=4
if &t_Co > 1
syntax enable
endif
|