From 8b9887ad91f4374069afe387acc5df1c90f23c0c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 2 Jun 2018 21:46:35 +1200 Subject: 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. --- vim/plugin/macros.vim | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 vim/plugin/macros.vim (limited to 'vim/plugin') 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 -- cgit v1.2.3