Work around 'nomagic'
Documentation explicitly advises against setting this option, but this particular problem is easy enough to work around. Closes #90.
This commit is contained in:
parent
f85cb4e788
commit
fa433e0b73
@ -416,7 +416,7 @@ function! s:dosurround(...) " {{{1
|
|||||||
exe 'norm! df'.char
|
exe 'norm! df'.char
|
||||||
else
|
else
|
||||||
" One character backwards
|
" One character backwards
|
||||||
call search('.','bW')
|
call search('\m.', 'bW')
|
||||||
exe "norm! da".char
|
exe "norm! da".char
|
||||||
endif
|
endif
|
||||||
let removed = getreg('"')
|
let removed = getreg('"')
|
||||||
|
Loading…
Reference in New Issue
Block a user