aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-26 20:17:53 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-26 20:17:53 +0000
commit7bd54512dafb125a481a98acb5842a42ef1b3e14 (patch)
treec4b5c7568279e9fd5003221bdb759be202626eb8 /vim-mode/vim_mode.pl
parentvim_mode: d/c copies deleted string to " register. (diff)
downloadirssi-scripts-7bd54512dafb125a481a98acb5842a42ef1b3e14.tar.gz
irssi-scripts-7bd54512dafb125a481a98acb5842a42ef1b3e14.zip
vim_mode: Add <space>.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 57cddef..8732d8b 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -148,6 +148,7 @@ my $movements
# arrow like movement
'h' => { func => \&cmd_movement_h },
'l' => { func => \&cmd_movement_l },
+ ' ' => { func => \&cmd_movement_space },
'j' => { func => \&cmd_movement_j },
'k' => { func => \&cmd_movement_k },
# char movement, take an additional parameter and use $movement
@@ -257,6 +258,10 @@ sub cmd_movement_l {
$pos = $length if $pos > $length;
_input_pos($pos);
}
+sub cmd_movement_space {
+ my ($count, $pos) = @_;
+ cmd_movement_l($count, $pos);
+}
# later history (down)
sub cmd_movement_j {