aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-09-05 09:53:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-09-05 09:53:04 +1200
commit9233e1b09ecb98162f19834780d057e1369080f2 (patch)
tree4712bfc2a407a2c6a89fea41f7b47bb915f64ba0 /vim
parentMerge branch 'release/v1.66.0' into develop (diff)
downloaddotfiles-9233e1b09ecb98162f19834780d057e1369080f2.tar.gz
dotfiles-9233e1b09ecb98162f19834780d057e1369080f2.zip
Require at least one char in ftdetect filenames
Diffstat (limited to 'vim')
-rw-r--r--vim/ftdetect/perl.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftdetect/perl.vim b/vim/ftdetect/perl.vim
index 95830b0b..887a9fb6 100644
--- a/vim/ftdetect/perl.vim
+++ b/vim/ftdetect/perl.vim
@@ -1,9 +1,9 @@
" If it's a new file in a bin, libexec, or scripts subdir that has a
" Makefile.PL sibling, and I'm editing it, it's almost definitely Perl.
autocmd filetypedetect BufNewFile
- \ */bin/*
- \,*/libexec/*
- \,*/scripts/*
+ \ ?*/bin/?*
+ \,?*/libexec/?*
+ \,?*/scripts/?*
\ if filereadable(expand('<afile>:p:h:h') . '/Makefile.PL')
\| setfiletype perl
\|endif