From aa1f120ad3a29c27cc41d581cda3751c59343cce Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 15 Jun 2018 15:17:44 -0400 Subject: [PATCH] Fix yss in middle of line Closes https://github.com/tpope/vim-surround/issues/256 --- plugin/surround.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index f5d9b86..72a1442 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -573,7 +573,7 @@ nnoremap SurroundRepeat . nnoremap Dsurround :call dosurround(inputtarget()) nnoremap Csurround :call changesurround() nnoremap CSurround :call changesurround(1) -nnoremap Yssurround opfunc('setup').'g_' +nnoremap Yssurround '^'.v:count1.opfunc('setup').'g_' nnoremap YSsurround opfunc2('setup').'_' nnoremap Ysurround opfunc('setup') nnoremap YSurround opfunc2('setup')