瀏覽代碼

Add after directory to rtp as well

Junegunn Choi 12 年之前
父節點
當前提交
754abb36a2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      plug.vim

+ 3 - 0
plug.vim

@@ -99,6 +99,9 @@ function! s:add(...)
   let uri  = 'https://git:@github.com/' . plugin . '.git'
   let spec = { 'name': name, 'dir': dir, 'uri': uri, 'branch': branch }
   execute "set rtp+=".dir
+  if isdirectory(dir.'after')
+    execute "set rtp+=".dir.'after'
+  endif
   let g:plug[plugin] = spec
 endfunction