diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-09-05 09:53:04 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-09-05 09:53:04 +1200 |
commit | 9233e1b09ecb98162f19834780d057e1369080f2 (patch) | |
tree | 4712bfc2a407a2c6a89fea41f7b47bb915f64ba0 | |
parent | Merge branch 'release/v1.66.0' into develop (diff) | |
download | dotfiles-9233e1b09ecb98162f19834780d057e1369080f2.tar.gz dotfiles-9233e1b09ecb98162f19834780d057e1369080f2.zip |
Require at least one char in ftdetect filenames
-rw-r--r-- | vim/ftdetect/perl.vim | 6 |
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 |