aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-02 21:46:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-02 21:46:35 +1200
commit8b9887ad91f4374069afe387acc5df1c90f23c0c (patch)
tree761f66311f826ef78fa3b488cc79041389d26800 /vim/plugin
parent78a853300ef1d0ea1da313d781bb251beb8e51a6 (diff)
downloaddotfiles-8b9887ad91f4374069afe387acc5df1c90f23c0c.tar.gz
dotfiles-8b9887ad91f4374069afe387acc5df1c90f23c0c.zip
Refactor Vim distribution plugin/macro handling
Intelligently choose how to load matchit.vim, and clean up the short-circuit variables for the unwanted distribution plugins in an "after" plugin script.
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/macros.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/plugin/macros.vim b/vim/plugin/macros.vim
new file mode 100644
index 00000000..585eedc8
--- /dev/null
+++ b/vim/plugin/macros.vim
@@ -0,0 +1,5 @@
+" If we don't have packages (Vim < 8.0), try to load matchit.vim from the
+" older macros location in the distributed runtime instead
+if !has('packages')
+ silent! runtime macros/matchit.vim
+endif