diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-02 21:46:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-02 21:46:35 +1200 |
commit | 8b9887ad91f4374069afe387acc5df1c90f23c0c (patch) | |
tree | 761f66311f826ef78fa3b488cc79041389d26800 /vim/plugin | |
parent | Rebuild help tags after installing bundle (diff) | |
download | dotfiles-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.vim | 5 |
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 |