aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-08 16:27:22 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-08 16:27:22 +0000
commitc98389640a0d4c6f5bf1668d338ce22ca8e3bfd0 (patch)
tree45160ebdc12854db759c670bc8317ce266182825 /vim-mode/vim_mode.pl
parentvim_mode: Fix <C-D>/<C-U> only scrolling one line. (diff)
downloadirssi-scripts-c98389640a0d4c6f5bf1668d338ce22ca8e3bfd0.tar.gz
irssi-scripts-c98389640a0d4c6f5bf1668d338ce22ca8e3bfd0.zip
vim_mode: Add <C-E> and <C-Y>.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 0f56639..88c4bfb 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -44,7 +44,7 @@
# The special registers "* "+ contain both irssi's cut-buffer.
# * Line-wise shortcuts: dd cc yy
# * Shortcuts: s S C D
-# * Scroll the scrollback buffer: Ctrl-D Ctrl-U Ctrl-F Ctrl-B
+# * Scroll the scrollback buffer: Ctrl-E Ctrl-D Ctrl-Y Ctrl-U Ctrl-F Ctrl-B
# * Switch to last active window: Ctrl-6/Ctrl-^
# * Switch split windows: Ctrl-W j Ctrl-W k
# * Undo/Redo: u Ctrl-R
@@ -321,8 +321,10 @@ my $commands
D => { char => 'D', func => \&cmd_D, type => C_NORMAL,
repeatable => 1 },
# scrolling
+ "\x05" => { char => '<C-E>', func => \&cmd_ctrl_d, type => C_NORMAL },
"\x04" => { char => '<C-D>', func => \&cmd_ctrl_d, type => C_NORMAL,
needs_count => 1 },
+ "\x19" => { char => '<C-Y>', func => \&cmd_ctrl_u, type => C_NORMAL },
"\x15" => { char => '<C-U>', func => \&cmd_ctrl_u, type => C_NORMAL,
needs_count => 1 },
"\x06" => { char => '<C-F>', func => \&cmd_ctrl_f, type => C_NORMAL },