Load matchit.vim

Give precedence to a user installed version, if it exists.
This commit is contained in:
Tim Pope
2013-01-06 13:18:25 -05:00
parent 1a9e95e955
commit 7f240a9e6f
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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: