Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugin/surround.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.*','','')
Expand Down Expand Up @@ -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'
Expand Down