blob: 95830b0b7c3804cac8fef70f2e833dd0b26ee3b9 (
plain) (
tree)
|
|
" 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
|