mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-10 12:23:50 -05:00
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:
@@ -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('"')
|
||||||
|
|||||||
Reference in New Issue
Block a user