summaryrefslogtreecommitdiffstats
path: root/mode-key.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-07 15:58:40 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-07 15:58:40 +0000
commit2cb2bb8257b0d9258381829752bf12b29e35547c (patch)
treed13bd6bab13e8588e56d318930c18ef6a7c27403 /mode-key.c
parent56ddd3c0b16b4b22fd4f8e70f0ebbfb5a900e0ce (diff)
Support J and K for scroll up and scroll down in copy mode with vi keys,
suggested by martynas.
Diffstat (limited to 'mode-key.c')
-rw-r--r--mode-key.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mode-key.c b/mode-key.c
index 864989de..3c15ff40 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -161,6 +161,8 @@ const struct mode_key_entry mode_key_vi_copy[] = {
{ '0', 0, MODEKEYCOPY_STARTOFLINE },
{ ':', 0, MODEKEYCOPY_GOTOLINE },
{ '?', 0, MODEKEYCOPY_SEARCHUP },
+ { 'J', 0, MODEKEYCOPY_SCROLLDOWN },
+ { 'K', 0, MODEKEYCOPY_SCROLLUP },
{ '\002' /* C-b */, 0, MODEKEYCOPY_PREVIOUSPAGE },
{ '\003' /* C-c */, 0, MODEKEYCOPY_CANCEL },
{ '\004' /* C-d */, 0, MODEKEYCOPY_HALFPAGEDOWN },