Re: mutt, vim, and autowrapping replies
On 19Aug2016 12:39, li...@rickv.comwrote: On Fri, Aug 19, 2016 at 02:14:15PM +1000, c...@zip.com.au wrote: One caveat is that in format=flowed a line with no trailing space is actually not meant to be reflowed. Such as lines of code. I'm not sure how it handles this, the way it is. It'll probably need tweaking. It's already butchered my sig. -- Rick Valenzuela Videojournalist Shanghai, China +86 185 0177 0138 r...@rickv.com GnuPG ID: 0xD5644029 Note that the sig delimiter convention is two leading dashes and a space _on their own on a line_. Was yours like this before the reflow? Anyway, such a delimiter sounds at least technically feasible to honour. Cheers, Cameron Simpson
Re: mutt, vim, and autowrapping replies
On 19.08.16 12:39, li...@rickv.com wrote: > I found the answer here: > http://www.mdlerch.com/emailing-mutt-and-vim-advanced-config.html > > I'm using it now; it works well. Except, > > On Fri, Aug 19, 2016 at 02:14:15PM +1000, c...@zip.com.au wrote: > >One caveat is that in format=flowed a line with no trailing space > >is actually not meant to be reflowed. Such as lines of code. > > I'm not sure how it handles this, the way it is. It'll probably need > tweaking. It's already butchered my sig. Urrg. If a complete solution evolves, I'd consider it. But in the interim vim fully honours "> > > " style quoting when reflowing a paragraph with gq}, which I've mapped to ^W, allowing reflow of three paragraphs with ^WWW. That is cheap enough that full automation may become a backwards step on encountering an occasion when it's not desired. As the reflow leaves the cursor after the reflowed paragraph, that is the time to decide whether to reply to the text - and if not, then hit d{ to delete the bumpf not relevant to the reply being composed. If the need for explicit reflowing of quoted text encourages more assiduous pruning in lieu of profligate over-quoting, then let's keep it manual, I say. Erik (Where's my tin hat & flak jacket?)
Re: mutt, vim, and autowrapping replies
On 18Aug2016 20:25, Jeremy Volkeningwrote: Generally speaking I have the interface between mutt and vim regarding wrapping, flowed text, and quoting working satisfactorily. However, sometimes I receive mail with no line breaks within paragraphs. If I reply to such a message, the lack of hard breaks in the quoted paragraphs is retained within vim, and I'd rather not send out my replies formatted in this way. I can re-format the paragraphs to follow my textwidth setting with a few keystrokes, but I was wondering if anyone knew of anything I could add to "mail.vim" to re-flow the quoted text automatically upon opening in vim? Nice, thanks for asking this question; I had no idea that I wanted this. I found the answer here: http://www.mdlerch.com/emailing-mutt-and-vim-advanced-config.html I'm using it now; it works well. Except, On Fri, Aug 19, 2016 at 02:14:15PM +1000, c...@zip.com.au wrote: One caveat is that in format=flowed a line with no trailing space is actually not meant to be reflowed. Such as lines of code. I'm not sure how it handles this, the way it is. It'll probably need tweaking. It's already butchered my sig. -- Rick Valenzuela Videojournalist Shanghai, China +86 185 0177 0138 r...@rickv.com GnuPG ID: 0xD5644029
Re: mutt, vim, and autowrapping replies
On 18Aug2016 20:25, Jeremy Volkeningwrote: Generally speaking I have the interface between mutt and vim regarding wrapping, flowed text, and quoting working satisfactorily. However, sometimes I receive mail with no line breaks within paragraphs. If I reply to such a message, the lack of hard breaks in the quoted paragraphs is retained within vim, and I'd rather not send out my replies formatted in this way. I can re-format the paragraphs to follow my textwidth setting with a few keystrokes, but I was wondering if anyone knew of anything I could add to "mail.vim" to re-flow the quoted text automatically upon opening in vim? I too would like this. One caveat is that in format=flowed a line with no trailing space is actually not meant to be reflowed. Such as lines of code. I have an ancient macro bound to F7 with reformats a paragraph, a lot like piping it through the fmt command. Maybe it is enough to have such a macro and just walk through the text pressing it on offending paragraphs? Alternatively, one might only reflow lines not indented. Just random thoughts, happy to hear better ones. Cheers, Cameron Simpson
mutt, vim, and autowrapping replies
Generally speaking I have the interface between mutt and vim regarding wrapping, flowed text, and quoting working satisfactorily. However, sometimes I receive mail with no line breaks within paragraphs. If I reply to such a message, the lack of hard breaks in the quoted paragraphs is retained within vim, and I'd rather not send out my replies formatted in this way. I can re-format the paragraphs to follow my textwidth setting with a few keystrokes, but I was wondering if anyone knew of anything I could add to "mail.vim" to re-flow the quoted text automatically upon opening in vim? Thanks, Jeremy