Permalink
Browse files

Easy reference to vim syntax for the next time I need to modify the t…

…ranslation
  • Loading branch information...
1 parent 7d31a58 commit 2995353a4b9eec7b0514f65da14812cc5d2a9c4b @tsibley committed Jul 1, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 viack
View
1 viack
@@ -13,6 +13,7 @@ for (@ARGV) {
my $vimpat = $_;
$vimpat =~ s{([<>=@!%/&])}{\\$1}g;
$vimpat =~ s{(^|(?<=[^\\]))\\b}{\\W\\@=}g; # translate Perl's \b to \W\@= for vim
+ # see http://code.google.com/p/re2/wiki/Syntax
push @vimopts, '+1', '+/\v'.$vimpat;
last;
}

0 comments on commit 2995353

Please sign in to comment.