mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-08 11:23:49 -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
|
||||
else
|
||||
" One character backwards
|
||||
call search('.','bW')
|
||||
call search('\m.', 'bW')
|
||||
exe "norm! da".char
|
||||
endif
|
||||
let removed = getreg('"')
|
||||
|
||||
Reference in New Issue
Block a user