Program Python in VIM
Brian Victor
bhv1 at psu.edu
Thu Jan 22 16:12:42 EST 2004
François Pinard wrote:
> I do not know if there is a better way, but what I do for one is to
> create a small Makefile like:
>
> try:
> python test.py
I use a similar Makefile, and then I bind F4 to "make" in my .vimrc:
map ^[[14~ :make^M
To make that work, you have to make liberal use of control-V. Type:
map <ctrl-V><F4> :make<ctrl-V><enter>
into your .vimrc, and F4 should be bound to the make command.
One-keystoke running! (Does that violate an amazon patent?...)
--
Brian
More information about the Python-list
mailing list