From 545ca856ff99ef13dee161b465277d4dc9a1e2ad Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 3 Nov 2009 22:16:48 -0500 Subject: [PATCH] Work around remapped "d" [Christian Oudard] --- plugin/surround.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index 3bfd0e0..b667587 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -407,9 +407,9 @@ function! s:dosurround(...) " {{{1 call setreg('"',"") let strcount = (scount == 1 ? "" : scount) if char == '/' - exe 'norm '.strcount.'[/d'.strcount.']/' + exe 'norm! '.strcount.'[/d'.strcount.']/' else - exe 'norm d'.strcount.'i'.char + exe 'norm! d'.strcount.'i'.char endif let keeper = getreg('"') let okeeper = keeper " for reindent below @@ -435,7 +435,7 @@ function! s:dosurround(...) " {{{1 else " One character backwards call search('.','bW') - exe "norm da".char + exe "norm! da".char endif let removed = getreg('"') let rem2 = substitute(removed,'\n.*','','')