diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-09 20:22:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-09 20:22:30 +0100 |
commit | 8cc2a9c062fa38e133a62778518f769a423a2526 (patch) | |
tree | 3adfd9c063f9b46cbdb7f67be4c1dc9da90b065a /runtime/macros/matchit.vim | |
parent | 4d8505155ec3d0f04e268b2997153ecaf37ee188 (diff) | |
download | vim-8cc2a9c062fa38e133a62778518f769a423a2526.zip |
patch 8.0.0321: errors when trying to use scripts in tiny version
Problem: When using the tiny version trying to load the matchit plugin
gives an error. On MS-Windows some default mappings fail.
Solution: Add a check if the command used is available. (Christian Brabandt)
Diffstat (limited to 'runtime/macros/matchit.vim')
-rw-r--r-- | runtime/macros/matchit.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/macros/matchit.vim b/runtime/macros/matchit.vim index 9cfe2e532..f6f463f40 100644 --- a/runtime/macros/matchit.vim +++ b/runtime/macros/matchit.vim @@ -1,3 +1,5 @@ " Load the matchit package. " For those users who were loading the matchit plugin from here. -packadd matchit +if 1 + packadd matchit +endif |