Program Python in VIM

Paul Moore pf_moore at yahoo.co.uk
Thu Jan 22 14:08:33 EST 2004


Peter Wu <peterwu at hotmail.com> writes:

> I'm giving vim a try to program Python. The following are the steps I
> follow to code/test a python program.
>
> vi test.py
> [key in some python code]
> :wq
> :!python test.py
>
>
> Is there any other way? I don't want to type 'python test.py' 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.

Paul.
-- 
This signature intentionally left blank



More information about the Python-list mailing list