Load ftplugins while avoiding extraneous FileType events (#24, #25)

This commit is contained in:
Junegunn Choi 2014-07-04 14:20:48 +09:00
parent f90afc9081
commit 7f1ec7b12b

View File

@ -212,7 +212,7 @@ function! s:lod_ft(pat, names)
call s:lod(g:plugs[name], ['plugin', 'after'])
endfor
execute 'autocmd! PlugLOD FileType ' . a:pat
let &l:filetype = &l:filetype
silent! doautocmd filetypeplugin FileType
endfunction
function! s:lod_cmd(cmd, bang, l1, l2, args, plug)