Files
vim-matchup/plugin/matchup.vim
Andy K. Massimino e708188b35 Add version check
2017-11-14 17:51:38 -05:00

39 lines
719 B
VimL

" vim match-up - matchit replacement and more
"
" Maintainer: Andy Massimino
" Email: a@normed.space
"
if !get(g:, 'matchup_enabled', 1) || &cp
finish
endif
if !get(g:, 'matchup_no_version_check', 0)
\ && !(v:version >= 704 || has('nvim-0.1.7'))
echoerr 'match-up does not support this version of vim'
finish
endif
if exists('g:loaded_matchup')
finish
endif
let g:loaded_matchup = 1
if exists('g:loaded_matchit')
echoerr 'match-up must be loaded before matchit'
finish
endif
let g:loaded_matchit = 1
if get(g:, 'matchup_matchparen_enabled', 1)
if !exists('g:loaded_matchparen')
runtime plugin/matchparen.vim
endif
au! matchparen
endif
call matchup#init()
" vim: fdm=marker sw=2