diff options
author | 2006-08-18 00:22:56 +0000 | |
---|---|---|
committer | 2006-08-18 00:22:56 +0000 | |
commit | c8bae9a42e6e5492c08ac3b406ab86e8b3ec96ec (patch) | |
tree | 907eeb3f724f8f2cf75d2734d8b3ff6a5e82dd08 | |
parent | Instead of doing all this pointer and buffer arithmetic, generate string (diff) | |
download | wireguard-openbsd-c8bae9a42e6e5492c08ac3b406ab86e8b3ec96ec.tar.xz wireguard-openbsd-c8bae9a42e6e5492c08ac3b406ab86e8b3ec96ec.zip |
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.c | 18 |
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 |