Program Python in VIM

Brian Victor bhv1 at
Thu Jan 22 22:12:42 CET 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

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?...)


More information about the Python-list mailing list