Fix on-demand loading: load ftdetect and **/*.vim as well

This commit is contained in:
Junegunn Choi 2014-06-17 11:45:42 +09:00
parent 476a613746
commit 7e69a50890

View File

@ -166,8 +166,8 @@ endfunction
function! s:lod(plug) function! s:lod(plug)
let rtp = s:rtp(a:plug) let rtp = s:rtp(a:plug)
call s:add_rtp(rtp) call s:add_rtp(rtp)
for dir in ['plugin', 'after'] for dir in ['plugin', 'ftdetect', 'after']
for vim in split(globpath(rtp, dir.'/*.vim'), '\n') for vim in split(globpath(rtp, dir.'/**/*.vim'), '\n')
execute 'source '.vim execute 'source '.vim
endfor endfor
endfor endfor