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:
Tim Pope 2014-07-26 12:39:53 -04:00
parent f85cb4e788
commit fa433e0b73

View File

@ -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('"')