aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-18 10:13:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-18 10:13:30 +1200
commitfcc0e387b0f4ae02a07b6c721066749161f9444f (patch)
tree7f53be591bd7ee03f60d28bc26fec9831b756bf1 /Makefile
parentCheck b:is_posix existence not value (diff)
downloaddotfiles-fcc0e387b0f4ae02a07b6c721066749161f9444f.tar.gz
dotfiles-fcc0e387b0f4ae02a07b6c721066749161f9444f.zip
Scrap auto_cache_dirs plugin for a new approach
Trying this instead; creating the relevant directories at install time. Also putting all three under one "cache" subdir of ~/.vim or ~/vimfiles. I'm not sure this is actually better, but I do like that the relevant options are now set in the .vimrc rather than in a plugin, so I guess we'll see.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e3e0ad38..507221a8 100644
--- a/Makefile
+++ b/Makefile
@@ -548,11 +548,17 @@ install-vim-bundle: install-vim-config
'cp -p -- "$$1" $(VIMDIR)/"$${1#vim/bundle/*/}"' _ {} \;
$(VIM) -e -u NONE -c 'helptags $(VIMDIR)/doc' -c quit
+install-vim-cache:
+ mkdir -p -- \
+ $(VIMDIR)/cache/backup \
+ $(VIMDIR)/cache/swap \
+ $(VIMDIR)/cache/undo
+
install-vim-compiler:
mkdir -p -- $(VIMDIR)/compiler
cp -p -- vim/compiler/*.vim $(VIMDIR)/compiler
-install-vim-config:
+install-vim-config: install-vim-cache
cp -p -- vim/vimrc $(VIMRC)
if [ -e /etc/debian_version ] ; then \
cp -p -- vim/system/debian.vim $(VIMDIR)/system.vim ; \