From 2d2b357a095422d242e3c462513c5bff5648aea1 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 23 Jan 2018 15:47:57 +1300 Subject: Exclude root-level files from Vim bundles Create the plugin directory hierarchy first, and then copy the files in as long as they're at least one file deep. This prevents files like README.markdown landing in ~/.vim. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dd1a31f0..13a7db7a 100644 --- a/Makefile +++ b/Makefile @@ -530,10 +530,10 @@ install-vim-autoload: cp -p -- vim/autoload/*.vim $(HOME)/.vim/autoload install-vim-bundle: install-vim-config - find vim/bundle -name .git -prune -o \ + find vim/bundle/*/* \ -type d -exec sh -c \ - 'mkdir -p -- $(HOME)/.vim/"$${1#vim/bundle/*/}"' _ {} \; \ - -o \ + 'mkdir -p -- $(HOME)/.vim/"$${1#vim/bundle/*/}"' _ {} \; + find vim/bundle/*/*/* \ -type f -exec sh -c \ 'cp -p -- "$$1" $(HOME)/.vim/"$${1#vim/bundle/*/}"' _ {} \; -- cgit v1.2.3