From 8e6412db2013b11cece845d4e6cbe541a1875bdb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 4 Jun 2018 16:55:41 +1200 Subject: 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. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') 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 \ -- cgit v1.2.3