From 24de3ed822a53284576befebd4691f5092bddd2f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 11 Jul 2015 11:34:41 +0100 Subject: [PATCH] Move selection saving/restoring to z/Z Fixes #284 --- doc/keymap | 2 +- src/normal.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/keymap b/doc/keymap index 02217e6e..f19b6dd4 100644 --- a/doc/keymap +++ b/doc/keymap @@ -12,7 +12,7 @@ ┃ ┃ append│ select│ delete│ char│ │ ← │ ↓ │ ↑ │ → │ cursor│ rotate│eschook┃ ┃ ┣━━━━━━━━━┳━━━┹───┬───┴───┬───┴───┬───┴───┬───┴───┬───┴───┬───┴───┬───┴───┬───┴───┬───┴───┬───┴───┲━━━┷━━━━━━━┻━━━━━━━━┫ ┃ ┃ indent│ │ ᵐ│copysel│ ᵛ│ ᵐʷ│ ᵐʳ│ │ dedent│ indent│ ᵐʳ┃ ┃ -┃ ┠┄┄┄┄┄┄┄┤ │ select├┄┄┄┄┄┄┄┤ view│ prev│ search│ match├┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤ search┃ ┃ +┃ ┠┄┄┄┄┄┄┄┤ marks│ select├┄┄┄┄┄┄┄┤ view│ prev│ search│ match├┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤ search┃ ┃ ┃ ⇧ ┃ dedent│ │ line│ change│ cmds│ word│ next│ char│ user│ repeat│ ┃ ⇧ ┃ ┣━━━━━━━━━┻┳━━━━━━┷━━━┳━━━┷━━━━━┱─┴───────┴───────┴───────┴───────┴───────┴─┲━━━━━┷━━━━┳━━┷━━━━━━━╋━━━━━━━━━┳━━━━━━━━━━┫ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ diff --git a/src/normal.cc b/src/normal.cc index 3ac71e6d..0da98510 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1665,8 +1665,8 @@ static NormalCmdDesc cmds[] = { Key::PageUp, "scroll one page up", scroll }, { Key::PageDown, "scroll one page down", scroll }, - { '^', "restore selections", restore_selections }, - { alt('^'), "save selections", save_selections }, + { 'z', "restore selections", restore_selections }, + { 'Z', "save selections", save_selections }, }; KeyMap keymap = cmds;