When I add
formatoptions and have nonzero
textwidth, Vim will insert line breaks after commas followed by tildes when I do
gq in Normal mode. In my case, Vim sometimes inserts a line break at the comma in lines like
converting it to
... \dots, ~$A$
when I would prefer to keep it whole, that is,
instead. According to
letter meaning when present in 'formatoptions' ... m Also break at a multibyte character above 255. This is useful for Asian text where every character is a word on its own.
So this seems strange to me, since I thought both
~ are part of ASCII. Is there a way to prevent this behavior other than removing
formatoptions=m. Maybe you should file a bug report.