Program Python in VIM

Paul Moore pf_moore at
Thu Jan 22 20:08:33 CET 2004

Peter Wu <peterwu at> writes:

> I'm giving vim a try to program Python. The following are the steps I
> follow to code/test a python program.
> vi
> [key in some python code]
> :wq
> :!python
> Is there any other way? I don't want to type 'python' every time
> I've made any modifications. In Emacs, I can simply fire C-c C-c to fire
> the python interpreter. Thanks!

There's always

:map ^C^C :w^M:!python %^M

which makes C-c C-c write the file and then run it in Python.

This signature intentionally left blank

More information about the Python-list mailing list