summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2006-08-18 00:22:57 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2006-08-18 00:22:57 +0000
commit8e2643d27b64b4c6ad40adfc702a7c1f80845602 (patch)
tree91b90ade9f23a0d85945f223b2fc3837453f6a9f
parent50b85b2e44375b7b4401e6b94c3ef3f63f50e830 (diff)
Move backward-paragraph, forward-paragraph to M-{, M-} respectively.
(not M-[, M-]). This is where emacs has it.
-rw-r--r--usr.bin/mg/keymap.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/usr.bin/mg/keymap.c b/usr.bin/mg/keymap.c
index e3a6ab4187d..89e73aa51e3 100644
--- a/usr.bin/mg/keymap.c
+++ b/usr.bin/mg/keymap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keymap.c,v 1.38 2006/07/27 19:59:29 deraadt Exp $ */
+/* $OpenBSD: keymap.c,v 1.39 2006/08/18 00:22:56 kjell Exp $ */
/* This file is in the public domain. */
@@ -212,10 +212,9 @@ static PF metami[] = {
gotoeob /* > */
};
-static PF metalb[] = {
- gotobop, /* [ */
+static PF metabsl[] = {
delwhite, /* \ */
- gotoeop, /* ] */
+ rescan, /* ] */
rescan, /* ^ */
rescan, /* _ */
rescan, /* ` */
@@ -240,7 +239,12 @@ static PF metal[] = {
upperword, /* u */
backpage, /* v */
copyregion, /* w */
- extend /* x */
+ extend, /* x */
+ rescan, /* y */
+ rescan, /* z */
+ gotobop, /* { */
+ rescan, /* | */
+ gotoeop /* } */
};
static PF metatilde[] = {
@@ -269,10 +273,10 @@ struct KEYMAPE (8 + IMAPEXT) metamap = {
'-', '>', metami, NULL
},
{
- '[', 'f', metalb, NULL
+ '\\', 'f', metabsl, NULL
},
{
- 'l', 'x', metal, NULL
+ 'l', '}', metal, NULL
},
{
'~', CCHR('?'), metatilde, NULL