From 973487abcd469a51a23f0d293a455ed73da7804c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 18 May 2017 06:05:45 +0100 Subject: [PATCH] Small reorganization in the normal keymap --- src/normal.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/normal.cc b/src/normal.cc index 25becfff..6b2b568a 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1787,6 +1787,11 @@ const HashMap keymap{ { {'k'}, {"move up", move} }, { {'l'}, {"move right", move} }, + { {Key::Left}, { "move left", move} }, + { {Key::Down}, { "move down", move} }, + { {Key::Up}, { "move up", move} }, + { {Key::Right}, {"move right", move} }, + { {'H'}, {"extend left", move} }, { {'J'}, {"extend down", move} }, { {'K'}, {"extend up", move} }, @@ -1817,6 +1822,9 @@ const HashMap keymap{ { {'v'}, {"move view", view_commands} }, { {'V'}, {"move view (locked)", view_commands} }, + { {Key::PageUp}, { "scroll one page up", scroll} }, + { {Key::PageDown}, {"scroll one page down", scroll} }, + { {'y'}, {"yank selected text", yank} }, { {'p'}, {"paste after selected text", repeated>} }, { {'P'}, {"paste before selected text", repeated>} }, @@ -1943,19 +1951,11 @@ const HashMap keymap{ { {','}, {"user mappings", exec_user_mappings} }, - { {Key::Left}, { "move left", move} }, - { {Key::Down}, { "move down", move} }, - { {Key::Up}, { "move up", move} }, - { {Key::Right}, {"move right", move} }, - { {ctrl('b')}, {"scroll one page up", scroll} }, { {ctrl('f')}, {"scroll one page down", scroll} }, { {ctrl('u')}, {"scroll half a page up", scroll} }, { {ctrl('d')}, {"scroll half a page down", scroll} }, - { {Key::PageUp}, { "scroll one page up", scroll} }, - { {Key::PageDown}, {"scroll one page down", scroll} }, - { {'z'}, {"restore selections from register", restore_selections} }, { {alt('z')}, {"append selections from register", restore_selections} }, { {'Z'}, {"save selections to register", save_selections} },