I have to following lines in my .vimrc
file (being .vimrc
is irrelevant, other files the same),
noremap D "_d
"Make Y behave like other capitals (C, D)
nnoremap Y y$
When I started to delete "_d
from the end using <BS>
, immediately after the "
is removed, automatically, the text rewraps to
vnoremap D Make Y behave like other capitals (C, D)
nnoremap Y y$
My possible related settings are comments=sO:" -,mO:" ,eO:"",:"
and formatoptions=tcq
(which seems irrelevant after several test). What is causing this problem? And how can I disable it such that the normal editing result
noremap D
"Make Y behave like other capitals (C, D)
nnoremap Y y$
is recovered if I do the same delete.
)
,]
,}
or"
for you. It will also remove the pair when you delete the first one with backspace and it finds "nothing" in between the pair. Which is somewhat the case here, if you consider that the two"
s make a pair... So that might explain this behavior you're seeing.auto-pairs
is to blame. Very glad to know the reason finally, thanks a lot!