mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-11 12:33:47 -05:00
Load matchit.vim
Give precedence to a user installed version, if it exists.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user