From owner-freebsd-questions@FreeBSD.ORG Sun Jun 14 13:55:52 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6823106566C for ; Sun, 14 Jun 2009 13:55:52 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id 6DB198FC1C for ; Sun, 14 Jun 2009 13:55:52 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 2033 invoked by uid 89); 14 Jun 2009 13:56:14 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 14 Jun 2009 13:56:14 -0000 In-Reply-To: <20090614125741.GA1829@marge.bs.l> References: <20090614125741.GA1829@marge.bs.l> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7E38087D-71A3-467D-9BCD-B7AC0CDD4A3E@identry.com> Content-Transfer-Encoding: 7bit From: John Almberg Date: Sun, 14 Jun 2009 09:55:49 -0400 To: Bertram Scharpf X-Mailer: Apple Mail (2.753.1) Cc: freebsd-questions@freebsd.org Subject: Re: Terminal / vim / shortcuts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2009 13:55:53 -0000 >> 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 :wsleep 1gi > > 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