blob: 887a9fb6afe7e34b847d9369db729a5f9da1a3b9 (
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
|