1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 11:50:05 +08:00
SpaceVim/bundle/vim-matchup/after/ftplugin/cpp_matchup.vim
2020-06-13 14:06:35 +08:00

26 lines
479 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
if matchup#util#matchpref('template', 0)
call matchup#util#append_match_words(
\ '\%(\s\@<!<\|<\s\@!\)=\@!:\%(\s\@<!>\|>\s\@!\)=\@!')
if stridx(&matchpairs, '<:>')
setlocal matchpairs-=<:>
endif
endif
let &cpo = s:save_cpo
" vim: fdm=marker sw=2