Work around remapped "d" [Christian Oudard]
This commit is contained in:
parent
50cea14534
commit
545ca856ff
@ -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.*','','')
|
||||
|
Loading…
Reference in New Issue
Block a user