aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-04 16:55:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-04 16:55:41 +1200
commit8e6412db2013b11cece845d4e6cbe541a1875bdb (patch)
treee92219358c9eb86166854bdca69365597d6a9c95 /Makefile
parentAdd mail ftdetect rules (diff)
downloaddotfiles-8e6412db2013b11cece845d4e6cbe541a1875bdb.tar.gz
dotfiles-8e6412db2013b11cece845d4e6cbe541a1875bdb.zip
Refactor suspend_autoformat.vim, add autoload
* Add a function to suspend autoformatting for the duration of pasting lines. * Factor the ftplugin's functions out to be autoloaded; this requires Vim >=7.0, but it already needed that. * Add Makefile infrastructure for new autoload directories/files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fd08950d..345952cd 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@
install-vim-after-indent \
install-vim-after-plugin \
install-vim-after-syntax \
+ install-vim-autoload \
install-vim-bundle \
install-vim-compiler \
install-vim-config \
@@ -491,6 +492,7 @@ VIMDIR = $(HOME)/.vim
VIMRC = $(HOME)/.vimrc
install-vim: install-vim-after \
+ install-vim-autoload \
install-vim-bundle \
install-vim-compiler \
install-vim-config \
@@ -522,6 +524,14 @@ install-vim-after-syntax:
mkdir -p $(VIMDIR)/after/syntax
cp -p -- vim/after/syntax/*.vim $(VIMDIR)/after/syntax
+install-vim-autoload:
+ find vim/autoload \
+ -type d -exec sh -c \
+ 'mkdir -- $(VIMDIR)/"$${1#vim/}"' _ {} \; \
+ -o \
+ -type f -exec sh -c \
+ 'cp -p -- "$$1" $(VIMDIR)/"$${1#vim/}"' _ {} \;
+
install-vim-bundle: install-vim-config
find vim/bundle/*/* \
-type d -exec sh -c \