From e0411fd125e62a7326617204d7f343cb45d6d205 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 4 Nov 2010 20:40:06 +0000 Subject: vim_mode: bugfix for error on :map, should be treated as just :map --- vim-mode/vim_mode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index c796fbf..0eddc76 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1964,7 +1964,7 @@ sub ex_map { add_map($lhs, $command); # :map [lhs] - } elsif ($arg_str eq 'map' or $arg_str =~ /^map (\S+)$/) { + } elsif ($arg_str =~ m/^map\s*$/ or $arg_str =~ m/^map (\S+)$/) { # Necessary for case insensitive matchings. lc alone won't work. my $search = $1; $search = '' if not defined $search; -- cgit v1.2.3