mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:20:06 +08:00
26 lines
530 B
VimL
26 lines
530 B
VimL
" vim match-up - even better matching
|
|
"
|
|
" Maintainer: Andy Massimino
|
|
" Email: a@normed.space
|
|
"
|
|
|
|
if !exists('g:loaded_matchup') || !exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
|
|
let s:save_cpo = &cpo
|
|
set cpo&vim
|
|
|
|
call matchup#util#patch_match_words('\<if', '\<if\>')
|
|
call matchup#util#patch_match_words('\<end\s*if', '\<end\>\s*if')
|
|
|
|
call matchup#util#append_match_words(
|
|
\ '^\s*#\s*if\(\|def\|ndef\)\>'
|
|
\ . ':^\s*#\s*elif\>:^\s*#\s*else\>'
|
|
\ . ':^\s*#\s*endif\>')
|
|
|
|
let &cpo = s:save_cpo
|
|
|
|
" vim: fdm=marker sw=2
|
|
|