Add after directory to rtp as well

This commit is contained in:
Junegunn Choi 2013-09-12 00:35:24 +09:00
parent 77da66ad63
commit 754abb36a2

View file

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