瀏覽代碼

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

Junegunn Choi 11 年之前
父節點
當前提交
7e69a50890
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plug.vim

+ 2 - 2
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