MatchIt: add :packadd for Vim 8

This commit is contained in:
Marco Hinz 2017-01-04 19:37:39 +01:00
parent 0ff0df85b6
commit 54f75b7438
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -1830,12 +1830,18 @@ Vim comes bundled with a plugin called matchit.vim which is not enabled by
default. It makes `%` also cycle through HTML tags, if/else/endif constructs in default. It makes `%` also cycle through HTML tags, if/else/endif constructs in
VimL etc. and introduces a few new commands. VimL etc. and introduces a few new commands.
To always load the plugin, put this in your vimrc: #### Installation for Vim 8
```vim ```vim
if !exists('g:loaded_matchit') " vimrc
runtime macros/matchit.vim packadd! matchit
endif ```
#### Installation for Vim 7 and older
```vim
" vimrc
runtime macros/matchit.vim
``` ```
Since the documentation of matchit is pretty extensive, I suggest also doing the Since the documentation of matchit is pretty extensive, I suggest also doing the
@ -1847,6 +1853,8 @@ following once:
:helptags ~/.vim/doc :helptags ~/.vim/doc
``` ```
#### Small intro
The plugin is ready to use now. See `:h matchit-intro` for the supported The plugin is ready to use now. See `:h matchit-intro` for the supported
commands and `:h matchit-languages` for the supported languages. commands and `:h matchit-languages` for the supported languages.