blob: 95830b0b7c3804cac8fef70f2e833dd0b26ee3b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
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/*
\ if filereadable(expand('<afile>:p:h:h') . '/Makefile.PL')
\| setfiletype perl
\|endif
|