diff --git a/plugin/surround.vim b/plugin/surround.vim index a3bc81d..a7a0f4c 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -496,6 +496,11 @@ function! s:dosurround(...) " {{{1 call setreg('"',removed,regtype) let s:lastdel = removed let &clipboard = cb_save + if newchar == "" + silent! call dot#set("\Dsurround".char,scount) + else + silent! call dot#set("\Csurround".char.newchar,scount) + endif endfunction " }}}1 function! s:changesurround() " {{{1 @@ -561,6 +566,9 @@ function! s:opfunc(type,...) " {{{1 call setreg(reg,reg_save,reg_type) let &selection = sel_save let &clipboard = cb_save + if a:type =~ '^\d\+$' + silent! call dot#set("\Y".(a:0 ? "S" : "s")."surround".char,a:type) + endif endfunction function! s:opfunc2(arg)