From owner-freebsd-questions Wed Jul 14 6:10:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pasha.anand.org (pasha.anand.org [199.103.176.41]) by hub.freebsd.org (Postfix) with SMTP id 207FB14D84 for ; Wed, 14 Jul 1999 06:10:27 -0700 (PDT) (envelope-from arb@anand.org) Received: (qmail 13867 invoked by uid 1001); 14 Jul 1999 07:41:55 -0000 Date: Wed, 14 Jul 1999 10:41:55 +0300 From: Anand Buddhdev To: freebsd-questions@freebsd.org Subject: key mapping in vi/nvi Message-ID: <19990714104155.A13850@africaonline.co.ke> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been trying to do some key mapping in vi, but I'm stuck. I can associate simple letters to words, eg. map n anand, so that a press of 'anand' will instead send 'anand' to the editor. However, I want to associate the function keys F1 to F12 with various more complex macros, for example a substitution macro, like: F1 = s/From: Anand Buddhdev /From: postmaster/ This is so I can use vi with mutt, and change my from addresses with a single key rather than editing them everytime. Any help will be appreciated. -- Anand To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message