Ensure ftplugin files are loaded (#24)

If `filetype plugin on` is called before `plug#end()`, filetype
plugin handler is invoked before ODL autocmd from vim-plug which
updates runtimepath and ftplugin files are not loaded.
This commit is contained in:
Junegunn Choi 2014-06-22 10:27:15 +09:00
parent 4d352e1849
commit a026eb39c4

View File

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