From 7ab542ad9346f65f77c66b4db593f0a53ea587c0 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Sat, 7 May 2016 11:04:53 +0300 Subject: [PATCH] Don't block use of user defined text objects --- plugin/surround.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index 5909260..307cf94 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -407,7 +407,7 @@ function! s:dosurround(...) " {{{1 endif exe 'norm! dt'.char else - exe 'norm! d'.strcount.'i'.char + exe 'norm d'.strcount.'i'.char endif let keeper = getreg('"') let okeeper = keeper " for reindent below @@ -436,7 +436,7 @@ function! s:dosurround(...) " {{{1 else " One character backwards call search('\m.', 'bW') - exe "norm! da".char + exe "norm da".char endif let removed = getreg('"') let rem2 = substitute(removed,'\n.*','','') @@ -510,7 +510,7 @@ function! s:opfunc(type, ...) abort " {{{1 let reg_type = getregtype(reg) let type = a:type if a:type == "char" - silent exe 'norm! v`[o`]"'.reg.'y' + silent exe 'norm v`[o`]"'.reg.'y' let type = 'v' elseif a:type == "line" silent exe 'norm! `[V`]"'.reg.'y'