Date: Sun, 14 Jun 2009 09:55:49 -0400 From: John Almberg <jalmberg@identry.com> To: Bertram Scharpf <lists@bertram-scharpf.de> Cc: freebsd-questions@freebsd.org Subject: Re: Terminal / vim / shortcuts Message-ID: <7E38087D-71A3-467D-9BCD-B7AC0CDD4A3E@identry.com> In-Reply-To: <20090614125741.GA1829@marge.bs.l> References: <b6c05a470906131718w521250e7u6f83d384e6500bc3@mail.gmail.com> <20090614125741.GA1829@marge.bs.l>
next in thread | previous in thread | raw e-mail | index | archive | help
>> 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. It may be off topic, but also very cool! Thanks for the question and the answer. -- John
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7E38087D-71A3-467D-9BCD-B7AC0CDD4A3E>