diff --git a/README.markdown b/README.markdown index 62e85de..b54bf7d 100644 --- a/README.markdown +++ b/README.markdown @@ -32,6 +32,8 @@ mostly `:set` calls.) Here's a taste: * `'listchars'`: Show trailing whitespace. * `'scrolloff'`: Always show at least one line above/below the cursor. * `nmap Y y$`: Make `Y` behaves like `C` and `D`. +* `runtime! macros/matchit.vim`: Load the version of matchit.vim that ships + with Vim. [source]: https://github.com/tpope/vim-sensible/master/plugin/sensible.vim diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 391f9ad..0929d98 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -51,6 +51,10 @@ if exists('+undofile') set undofile endif +if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' + runtime! macros/matchit.vim +endif + nnoremap Y y$ " vim:set ft=vim et sw=2: