Program Python in VIM

Mike Huffman mike at mhuffman.com
Fri Jan 23 12:13:05 EST 2004


> > > :!python test.py
> > >
> > >
> > > Is there any other way? I don't want to type 'python test.py' every time
>  
> :!!
> 
> repeats the last command.

% is the symbol for "current file name," so I use:

:w
:!python %

then thereafter in the current vi session:
:!!

It would be nice to be able to combine the write and shell command in
one single command...

Mike



More information about the Python-list mailing list