At 13:54 -0800 07 Dec 2012, Michael Elkins <m...@sigpipe.org> wrote:
I think the better solution would be to teach Vim how to disable auto reformat when editing in the email header,
That would indeed be nice, but is likely to be difficult to get right.
because there are other cases where it will bite you. For example, it doesn't seem to properly insert whitespace at the start of the line when it wraps a header field.
Yes, I'm aware of that. But I've actually been using this patch for over a year and, in my experience, that is rare and easy to fix. I rarely need to edit headers to such an extent that changes in wrapping are necessary. On the other hand, the damage done without the patch occurs every time I need to edit the headers and generally requires several complex actions to resolve.
Alternatively, define a toggle key which does +/-=a for manual intervention.
That would certainly be an option, but it would still require manual use when moving between the different areas. In the vast majority of my uses, with this patch I almost never have issues with auto reformatting of my messages.
And so far the only major objection is that this would cause headers to not look as good while editing after they'd been filled in manually if a leading space isn't entered. If the patch isn't accepted, I can live with applying it myself for every build; I've already been doing that for some time, and I have enough other patches that I apply anyway. It just seems to me that this would be an improvement for other people as well, with no real downside.