diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-26 20:17:53 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-26 20:17:53 +0000 |
commit | 7bd54512dafb125a481a98acb5842a42ef1b3e14 (patch) | |
tree | c4b5c7568279e9fd5003221bdb759be202626eb8 | |
parent | vim_mode: d/c copies deleted string to " register. (diff) | |
download | irssi-scripts-7bd54512dafb125a481a98acb5842a42ef1b3e14.tar.gz irssi-scripts-7bd54512dafb125a481a98acb5842a42ef1b3e14.zip |
vim_mode: Add <space>.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 5 |
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 { |