All,

I know this borders being a vim question, but I was hoping for some
clarification on why my emails look strange on some clients.

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

With this, my code generally wraps at textwidth.

I had not noticed until recently but when viewing my sent emails via
my iPhone mail app, my messages are appearing strangely formatted.
Here's an example:

-->8--

Hi Friend,

So the plan is to carpool on Sunday to Vegas, then on Wednesday back
to the <erroenous linebreak>
office?

--8<--

I suspect the erroneous linebreak is because vim is force wrapping the text.

Is the answer to not wrap at all? It would be nice to see my emails
wrap _visually_, even if the message itself is _not_ wrapping under
the hood.

I don't see this wordwrap problem when viewing the emails in Outlook
or the Outlook Web App (yuck!).

Any thoughts on how to best configure vim for my use case?

Cheers!

Reply via email to