aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-30 23:37:48 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-30 23:37:48 +0000
commit55745779b3b3ae7b95e15a9835958e5301dc0354 (patch)
tree67ad79a780d6d64c8d32b1145f7c72d58ab97d64 /vim-mode/vim_mode.pl
parentvim_mode: Add :bn :bp. (diff)
downloadirssi-scripts-55745779b3b3ae7b95e15a9835958e5301dc0354.tar.gz
irssi-scripts-55745779b3b3ae7b95e15a9835958e5301dc0354.zip
vim_mode: Add Ctrl-6 in command mode, same like :b#.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index f0ad409..a9b7d0f 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -286,6 +286,7 @@ my $movements
'~' => { func => \&cmd_movement_tilde },
'.' => {},
'"' => { func => \&cmd_movement_register },
+ "\x1e" => { func => \&cmd_movement_ctrl_6 },
# undo
'u' => { func => \&cmd_undo },
"\x12" => { func => \&cmd_redo },
@@ -869,6 +870,11 @@ sub cmd_movement_register {
print "Changing register to $register" if DEBUG;
}
+sub cmd_movement_ctrl_6 {
+ # like :b#
+ Irssi::command('window last');
+}
+
# Adapt the input position depending if an operator is active or not.
sub _fix_input_pos {
my ($pos, $length) = @_;