diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-01-23 15:47:57 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-01-23 15:47:57 +1300 |
commit | 2d2b357a095422d242e3c462513c5bff5648aea1 (patch) | |
tree | 5ab0f4bfed57288d625647942e80155210d3821e /Makefile | |
parent | Restore install-vim-autoload target (diff) | |
download | dotfiles-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-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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/*/}"' _ {} \; |