From 9233e1b09ecb98162f19834780d057e1369080f2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Sep 2018 09:53:04 +1200 Subject: Require at least one char in ftdetect filenames --- vim/ftdetect/perl.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim') 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(':p:h:h') . '/Makefile.PL') \| setfiletype perl \|endif -- cgit v1.2.3