Program Python in VIM
pf_moore at yahoo.co.uk
Thu Jan 22 20:08:33 CET 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]
> :!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!
: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