aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-23 15:47:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-23 15:47:57 +1300
commit2d2b357a095422d242e3c462513c5bff5648aea1 (patch)
tree5ab0f4bfed57288d625647942e80155210d3821e /Makefile
parentRestore install-vim-autoload target (diff)
downloaddotfiles-2d2b357a095422d242e3c462513c5bff5648aea1.tar.gz
dotfiles-2d2b357a095422d242e3c462513c5bff5648aea1.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files 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/*/}"' _ {} \;