使用vi来编辑python代码,参考这如下文章 [Python and vim: Make your own IDE](http://dancingpenguinsoflight.com/2009/02/python-and-vim-make-your-own- ide/) Indenting Python with VIM 主要的: 在.vimrc中
filetype plugin indent on
AutoCmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,(
AutoCmd BufNewFile,BufRead *.py
\ setlocal tabstop=4
\ setlocal softtabstop=4
\ setlocal shiftwidth=4
\ setlocal textwidth=80
\ setlocal smarttab
\ setlocal expandtab
\ setlocal smartindent
\ setlocal indentkeys=!^F,o,O,<:>,0),0],0},=elif,=except,0#