From 754abb36a2a821657972ffa15b560d9681b92a34 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 12 Sep 2013 00:35:24 +0900 Subject: [PATCH] Add after directory to rtp as well --- plug.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plug.vim b/plug.vim index a33d2ba..77d96c6 100644 --- a/plug.vim +++ b/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