Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
VIM as Python IDE (dispatched.ch)
31 points by preek on May 23, 2009 | hide | past | favorite | 4 comments



My high school CS teacher, Jeff Elkner, has a simple .vimrc that I've used and loved: http://openbookproject.net/pybiblio/tips/elkner/vim4python.p...

It seems like nothing, but it's very handy to be able to hit F2 and see if your code works, then immediately go back to it.


grr, formatting.

http://ed.cranford.googlepages.com/vimrc if you're really interested in seeing my vimrc. I'm not fond of plugins.


My favorite Vim customization for Python coding:

  :nnoremap <C-P> :w !python<CR>
Also works for PHP

  :nnoremap <C-P> :w !php<CR>
You put these in the respective ftplugin files.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: