Hi,

Am Samstag, 13. Jun 2009, 20:18:02 -0400 schrieb Daniel Underwood:
> I edit python code in vim using Terminal on xfce.  I find myself, not
> surprisingly, having to exit "insert mode" and save changes frequently
> (when making code changes and wishing to test the immediate effects of
> the changes in a separate terminal).  This requires pressing 4 keys:
> "esc", ":", "w", and "enter".  How can I configure a shortcut (ideally
> using an F# key) that will perform this sequence of 4 key-presses?

This would rather be a question for the Vim mailing list.

  imap <F5> <esc>:w<bar>sleep 1<cr>gi

The purpose of the sleep is that you see the "written" message.


Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to