Fix #474 - Load ftdetect files in filetypedetect augroup

This commit is contained in:
Junegunn Choi
2016-04-17 01:13:13 +09:00
parent 92bcecddd6
commit 0d9efb01c7
3 changed files with 19 additions and 0 deletions

View File

@@ -222,7 +222,9 @@ function! plug#end()
if has_key(plug, 'for')
let types = s:to_a(plug.for)
if !empty(types)
augroup filetypedetect
call s:source(s:rtp(plug), 'ftdetect/**/*.vim', 'after/ftdetect/**/*.vim')
augroup END
endif
for type in types
call s:assoc(lod.ft, type, name)