Files
vim-matchup/after/ftplugin/ruby_matchup.vim
2021-02-25 22:21:45 -05:00

27 lines
505 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('retry', 'retry\|return')
let b:match_midmap = [
\ ['rubyRepeat', 'next'],
\ ['rubyDefine', 'return'],
\]
if exists('b:undo_ftplugin')
let b:undo_ftplugin .= '|unlet! b:match_midmap'
endif
let &cpo = s:save_cpo
" vim: fdm=marker sw=2