aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 14:49:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 15:13:43 +1300
commit4c46c80b18df43eb7917f312e13e992a343b6fa1 (patch)
tree80f31ddc96586adc70fabfc93f14845aecdfc3ef /Makefile
parentSpin 'fo' toggle out into new flag toggler plugin (diff)
downloaddotfiles-4c46c80b18df43eb7917f312e13e992a343b6fa1.tar.gz
dotfiles-4c46c80b18df43eb7917f312e13e992a343b6fa1.zip
Specify an install-vim-autoload target
We'll use this for defining Vim functions that should be dynamically loaded when required, rather like how pathogen.vim does it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c09541fd..cb5fcc4c 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,7 @@
install-urxvt \
install-vim \
install-vim-after \
+ install-vim-autoload \
install-vim-bundle \
install-vim-config \
install-vim-ftdetect \
@@ -472,6 +473,7 @@ install-urxvt: urxvt/ext/select
-exec cp -p -- {} $(HOME)/.urxvt/ext \;
install-vim: install-vim-after \
+ install-vim-autoload \
install-vim-bundle \
install-vim-config \
install-vim-doc \
@@ -485,6 +487,10 @@ install-vim-after:
-type d -exec sh -c 'mkdir -p -- $(HOME)/."$$1"' _ {} \; -o \
-type f -exec sh -c 'cp -p -- "$$1" $(HOME)/."$$1"' _ {} \;
+install-vim-autoload:
+ mkdir -p -- $(HOME)/.vim/autoload
+ cp -p -- vim/autoload/*.vim $(HOME)/.vim/autoload
+
install-vim-bundle: install-vim-config
find vim/bundle -name .git -prune -o \
-type d -exec sh -c 'mkdir -p -- $(HOME)/."$$1"' _ {} \; -o \