diff --git a/plugin/surround.vim b/plugin/surround.vim index c80847e..30f6237 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -510,7 +510,7 @@ function! s:opfunc(type,...) " {{{1 if a:type =~ '^\d\+$' silent! call repeat#set("\Y".(a:0 && a:1 ? "S" : "s")."surround".char.s:tag,a:type) else - silent! call repeat#set("\Yrepeat".char.s:tag,a:type) + silent! call repeat#set("\SurroundRepeat".char.s:tag) endif endfunction @@ -534,6 +534,7 @@ function! s:closematch(str) " {{{1 endif endfunction " }}}1 +nnoremap SurroundRepeat . nnoremap Dsurround :call dosurround(inputtarget()) nnoremap Csurround :call changesurround() nnoremap Yssurround :call opfunc(v:count1) @@ -541,7 +542,6 @@ nnoremap YSsurround :call opfunc2(v:count1) " discards the numerical argument but there's not much we can do with it nnoremap Ysurround :set opfunc=opfuncg@ nnoremap YSurround :set opfunc=opfunc2g@ -nnoremap Yrepeat :execute 'normal! .'.inputtarget() vnoremap VSurround :call opfunc(visualmode(),visualmode() ==# 'V' ? 1 : 0) vnoremap VgSurround :call opfunc(visualmode(),visualmode() ==# 'V' ? 0 : 1) inoremap Isurround =insert()