Program Python in VIM

Scott F sdfATexpertuneDOTcom
Fri Jan 23 13:20:41 EST 2004


mike at mhuffman.com (Mike Huffman) wrote in
news:3ae9c53d.0401230913.64c7150d at posting.google.com: 

> 
>: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...
> 

This should do it.

    map <somekey> :w<CR>:!python %<CR>

Scott



More information about the Python-list mailing list