diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-04 16:55:41 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-04 16:55:41 +1200 |
commit | 8e6412db2013b11cece845d4e6cbe541a1875bdb (patch) | |
tree | e92219358c9eb86166854bdca69365597d6a9c95 /Makefile | |
parent | Add mail ftdetect rules (diff) | |
download | dotfiles-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-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 \ |