From 6e7509e2ef50df90432d176005a79bd4b4dd06f4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 8 Feb 2015 14:47:19 +0900 Subject: [PATCH] Update PlugClean for Gist plugins In order to install Gist as a plugin, you have to modify its `dir` to be the `plugin` subdirectory of the normal path of the plugin if it were an ordinary pathogen-compatible Vim plugin. Plug 'https://gist.github.com/952560a43601cd9898f1.git', \ { 'dir': g:plug_home.'/xxx/plugin', 'rtp': '..' } PlugClean command was incompatible with the above trick, so it was updated not to remove the parent directory of `dir` of each plugin. --- plug.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plug.vim b/plug.vim index ab07873..03b7b16 100644 --- a/plug.vim +++ b/plug.vim @@ -1260,6 +1260,7 @@ function! s:clean(force) let allowed = {} for dir in dirs + let allowed[s:dirpath(fnamemodify(dir, ':h:h'))] = 1 let allowed[dir] = 1 for child in s:glob_dir(dir) let allowed[child] = 1