Add b:match_words patching util function

For demo #3, #7
This commit is contained in:
Andy K. Massimino
2017-11-15 12:06:05 -05:00
parent 64d17294f9
commit fbaed30dbc

View File

@@ -102,6 +102,16 @@ endfunction
" }}}1
function! matchup#util#patch_match_words(from, to) " {{{1
if !exists('b:match_words') | return | endif
let b:match_words = substitute(b:match_words,
\ '\V'.escape(a:from, '\'),
\ escape(a:to, '\'),
\ '')
endfunction
" }}}1
let &cpo = s:save_cpo
" vim: fdm=marker sw=2