Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 1999 10:41:55 +0300
From:      Anand Buddhdev <arb@anand.org>
To:        freebsd-questions@freebsd.org
Subject:   key mapping in vi/nvi
Message-ID:  <19990714104155.A13850@africaonline.co.ke>

next in thread | raw e-mail | index | archive | help

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 <arb@anand.org>/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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990714104155.A13850>