aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect/perl.vim
blob: 21a782c642fd88dd97598b708af861019a1d43c3 (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, it's almost definitely Perl.
autocmd filetypedetect BufNewFile
      \ */bin/*
      \,*/libexec/*
      \,*/scripts/*
      \ if filereadable(expand('<afile>:p:h:h') . '/Makefile.PL')
      \|  setfiletype perl
      \|endif