aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/macros.vim
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/macros.vim
parentRebuild help tags after installing bundle (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/macros.vim')
-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