From 7e69a50890dc052b709127f87f9c9f0134ca975c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 17 Jun 2014 11:45:42 +0900 Subject: [PATCH] Fix on-demand loading: load ftdetect and **/*.vim as well --- plug.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug.vim b/plug.vim index fe9314c..1425d08 100644 --- a/plug.vim +++ b/plug.vim @@ -166,8 +166,8 @@ endfunction function! s:lod(plug) let rtp = s:rtp(a:plug) call s:add_rtp(rtp) - for dir in ['plugin', 'after'] - for vim in split(globpath(rtp, dir.'/*.vim'), '\n') + for dir in ['plugin', 'ftdetect', 'after'] + for vim in split(globpath(rtp, dir.'/**/*.vim'), '\n') execute 'source '.vim endfor endfor