Cameron - thanks again for the quick reply. I've applied your recommendations (both to vim and mutt). Now when I sent emails with very long lines, the "Sent" message appears correctly on the iPhone, but the Gmail client on my iPhone (receiving end) has the message with line breaks in erroneous locations:
-->8-- Hi Friend, So the plan is to carpool on Sunday to Vegas, then on Wednesday back to the <erroenous linebreak> office? --8<-- Is there anything I'm missing to ensure the receiving end renders the email properly? Thanks! On Fri, Jan 15, 2016 at 5:10 AM, James <[email protected]> wrote: > Thank you very much Cameron. I had no idea this RFC even existed. > > On Thu, Jan 14, 2016 at 5:24 PM, Cameron Simpson <[email protected]> wrote: >> On 15Jan2016 09:20, Cameron Simpson <[email protected]> wrote: >>> >>> On 14Jan2016 16:23, James <[email protected]> wrote: >>>> >>>> I know this borders being a vim question, but I was hoping for some >>>> clarification on why my emails look strange on some clients. >>> >>> >>> Sound llike you want format=flowed, of which there has been some recent >>> discussion. This message is so formatted. Examine it on your iPhone etc. >> >> >> Oh yes, in addition to my vim settings I use these mutt settings: >> >> set reflow_text=yes >> set reflow_wrap=-4 >> set text_flowed=yes >> >> Also have a read of RFC3676 which covers this: >> >> http://tools.ietf.org/rfcmarkup?doc=3676 >> >> Cheers, >> Cameron Simpson <[email protected]> >> >>> The essence of this format is that (a) you fold text lines somewhere >>> suitable for common fixed-width dumb paging of the text (i.e. <80 columns, >>> typically 72 or so) so that non-format-flowed readers are happy and (b) you >>> mark all lines which are not the end of the paragraph as reflowable by >>> leaving a trailing space on the end (flowed-aware readers can then reflow >>> the paragraph to fit the display - mutt and the iPhone both do this). >>> >>> I set mutt's $editor variable to my "vim-flowed" script, which invokes vim >>> with useful settings, specificly "set formatoptions=waqj". See: >>> >>> https://bitbucket.org/cameron_simpson/css/src/tip/bin/vim-flowed >>> >>> You may want to use this directly or to integrate these with your normal >>> options for purposes of retaining your finger feel. >>> >>>> As a software developer I use vim every day without issue; here are >>>> the relevant settings that may be causing my heartache: >>>> >>>> " autocomment, set formatoptions >>>> " >>>> " t = autowrap to textwidth >>>> " c = autowrap to textwidth, add comment leader >>>> " r = auto-comment after <enter> >>>> " o = auto-comment with 'o' or 'O' >>>> " q = allow formating of comments with 'gq' >>>> " l = don't format existing lines >>>> " n = format numbered lists >>>> " 2 = auto-indent based on second line of paragraph >>>> " 1 = don't break lines after a one-letter word; break before >>>> set formatoptions=tcroqln21 >>>> set textwidth=78 >>> >>> >>> Thanks for these - I'll read them and see if they can improve my crude vim >>> environment. >>> >>> Cheers, >>> Cameron Simpson <[email protected]> >> >> >> --
