Program Python in VIM

Mike Huffman mike at mhuffman.com
Sat Jan 24 12:55:12 EST 2004


Scott F <sdfATexpertuneDOTcom> wrote in message news:<Xns94797D940180Asdfexpertunecom at 216.168.3.44>...
> This should do it.
> 
>     map <somekey> :w<CR>:!python %<CR>

It does indeed, Thanks!

Unfortuantely I do not use vi consistently enough to ever get beyond
the basics. Had some false starts finding a good key to map that
worked on all my vi installations (Linux, Cygwin, Windows console);
settled on Ctrl-K: unused and easy to type.

Actually, at the moment I am using the maping for Perl, but don't tell
anyone :-)

Mike



More information about the Python-list mailing list