From 7bd54512dafb125a481a98acb5842a42ef1b3e14 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 26 Sep 2010 22:17:53 +0200 Subject: vim_mode: Add . --- vim-mode/vim_mode.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vim-mode/vim_mode.pl') 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 { -- cgit v1.2.3