aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 {