Program Python in VIM

Mike Huffman mike at
Sat Jan 24 18:55:12 CET 2004

Scott F <sdfATexpertuneDOTcom> wrote in message news:<Xns94797D940180Asdfexpertunecom at>...
> 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 :-)


More information about the Python-list mailing list