summaryrefslogtreecommitdiffstats
path: root/mode-key.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-01-23 17:49:21 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-01-23 17:49:21 +0000
commit8865eb2866971d1f82876546154f3032e915348b (patch)
treeabdf5cb46fd6566aa164c83aeb3a08e386719210 /mode-key.c
parent097a501414b3278b048887fca174b65a2b2f5718 (diff)
Use C-e and C-y for scrolling in vi mode, from Micah Cowan.
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 f91f9c64..e51b18ed 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -172,9 +172,11 @@ const struct mode_key_entry mode_key_vi_copy[] = {
{ '\002' /* C-b */, 0, MODEKEYCOPY_PREVIOUSPAGE },
{ '\003' /* C-c */, 0, MODEKEYCOPY_CANCEL },
{ '\004' /* C-d */, 0, MODEKEYCOPY_HALFPAGEDOWN },
+ { '\005' /* C-e */, 0, MODEKEYCOPY_SCROLLDOWN },
{ '\006' /* C-f */, 0, MODEKEYCOPY_NEXTPAGE },
{ '\010' /* C-h */, 0, MODEKEYCOPY_LEFT },
{ '\025' /* C-u */, 0, MODEKEYCOPY_HALFPAGEUP },
+ { '\031' /* C-y */, 0, MODEKEYCOPY_SCROLLUP },
{ '\033' /* Escape */, 0, MODEKEYCOPY_CLEARSELECTION },
{ '\r', 0, MODEKEYCOPY_COPYSELECTION },
{ '^', 0, MODEKEYCOPY_BACKTOINDENTATION },