Allow preventing loading matchit in init.vim, re #31

This commit is contained in:
Andy K. Massimino
2018-05-16 05:34:52 -04:00
parent e7cc67e36d
commit bc5dbf4297

View File

@@ -24,11 +24,11 @@ if exists('g:loaded_matchup')
endif
let g:loaded_matchup = 1
if has('nvim') && exists(':MatchDebug')
runtime! autoload/matchup/unmatchit.vim
endif
if exists('g:loaded_matchit')
if has('nvim')
if exists(':MatchDebug')
runtime! autoload/matchup/unmatchit.vim
endif
elseif exists('g:loaded_matchit')
echoerr 'match-up must be loaded before matchit'
finish
endif