Преглед на файлове

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