Editing python with Vim

21 Feb 2009

Posted by acrollet

Found a nice post on this kind of stuff here. I haven't implemented all of it by any means, but the omnifunc code completion and snippetsEmu are quite nice. Also did my own hacky perversion of the :make command. .vimrc excerpt follows...

  1. " py stuff
  2. autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class  
  3. autocmd FileType python set omnifunc=pythoncomplete#Complete
  4. autocmd FileType python set makeprg=python\ %

Blog Tags: