aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-09-28 21:41:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-09-28 21:41:47 +1300
commit4aa7a02a8ba626d5b5d743f4272e7b17a23b8dc5 (patch)
treed7b9d677513de4dc8627572a3a60d3377472680e /Makefile
parentUse a relative symlink (diff)
downloaddotfiles-4aa7a02a8ba626d5b5d743f4272e7b17a23b8dc5.tar.gz
dotfiles-4aa7a02a8ba626d5b5d743f4272e7b17a23b8dc5.zip
Remove/install/clean plugins individually
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ee637130..4852cd3d 100644
--- a/Makefile
+++ b/Makefile
@@ -100,8 +100,11 @@ install-vim :
install -m 0644 vim/after/ftplugin/* $(HOME)/.vim/after/ftplugin
install -m 0644 vim/after/plugin/* $(HOME)/.vim/after/plugin
git submodule update --init
- cp -fR vim/bundle/* $(HOME)/.vim/bundle
- rm -fr $(HOME)/.vim/bundle/*/.git*
+ for plugin in vim/bundle/* ; do \
+ rm -fr $(HOME)/.vim/bundle/"$${plugin##*/}" ; \
+ cp -r "$$plugin" $(HOME)/.vim/bundle ; \
+ rm -fr $(HOME)/.vim/bundle/"$${plugin##*/}"/.git* ; \
+ done
rm -f $(HOME)/.vim/autoload/pathogen.vim
ln -s ../bundle/pathogen/autoload/pathogen.vim \
$(HOME)/.vim/autoload/pathogen.vim