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('"',"")
|
call setreg('"',"")
|
||||||
let strcount = (scount == 1 ? "" : scount)
|
let strcount = (scount == 1 ? "" : scount)
|
||||||
if char == '/'
|
if char == '/'
|
||||||
exe 'norm '.strcount.'[/d'.strcount.']/'
|
exe 'norm! '.strcount.'[/d'.strcount.']/'
|
||||||
else
|
else
|
||||||
exe 'norm d'.strcount.'i'.char
|
exe 'norm! d'.strcount.'i'.char
|
||||||
endif
|
endif
|
||||||
let keeper = getreg('"')
|
let keeper = getreg('"')
|
||||||
let okeeper = keeper " for reindent below
|
let okeeper = keeper " for reindent below
|
||||||
@ -435,7 +435,7 @@ function! s:dosurround(...) " {{{1
|
|||||||
else
|
else
|
||||||
" One character backwards
|
" One character backwards
|
||||||
call search('.','bW')
|
call search('.','bW')
|
||||||
exe "norm da".char
|
exe "norm! da".char
|
||||||
endif
|
endif
|
||||||
let removed = getreg('"')
|
let removed = getreg('"')
|
||||||
let rem2 = substitute(removed,'\n.*','','')
|
let rem2 = substitute(removed,'\n.*','','')
|
||||||
|
Loading…
Reference in New Issue
Block a user