From 0e62518d8997f86c09fd70e0b29b00069362b23d Mon Sep 17 00:00:00 2001 From: Delapouite Date: Wed, 4 Oct 2017 12:47:56 +0200 Subject: [PATCH] Docs: add missing normal keys --- README.asciidoc | 6 ++++-- doc/manpages/keys.asciidoc | 14 ++++++++++---- src/normal.cc | 6 +++--- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 8f01a692..1d3c9c36 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -369,8 +369,10 @@ Movement * ``: select previous match * ``: add a new selection with previous match - * `pageup`: scroll up - * `pagedown`: scroll down + * `pageup, `: scroll one page up + * `pagedown, `: scroll one page down + * ``: scroll half a page up + * ``: scroll half a page down * `'`: rotate selections (the main selection becomes the next one) * ``: rotate selections backwards diff --git a/doc/manpages/keys.asciidoc b/doc/manpages/keys.asciidoc index 287b6956..46d04ab2 100644 --- a/doc/manpages/keys.asciidoc +++ b/doc/manpages/keys.asciidoc @@ -179,11 +179,17 @@ is a sequence of non whitespace characters **:: add a new selection with previous match -*pageup*:: - scroll up +*pageup, *:: + scroll one page up -*pagedown*:: - scroll down +*pagedown, *:: + scroll one page down + +**:: + scroll half a page up + +**:: + scroll half a page down *'*:: rotate selections (the main selection becomes the next one) diff --git a/src/normal.cc b/src/normal.cc index 62f66f92..454c8fdc 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1989,9 +1989,6 @@ 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>} }, @@ -2118,6 +2115,9 @@ const HashMap keymap{ { {','}, {"user mappings", exec_user_mappings} }, + { {Key::PageUp}, { "scroll one page up", scroll} }, + { {Key::PageDown}, {"scroll one page down", scroll} }, + { {ctrl('b')}, {"scroll one page up", scroll} }, { {ctrl('f')}, {"scroll one page down", scroll} }, { {ctrl('u')}, {"scroll half a page up", scroll} },