On Sun, 16 Mar 2025, Carlos E. R. via Alpine-info wrote:

On 2025-03-15 16:44, Tim Woodall via Alpine-info wrote:
Hi,

I have the following setting in my (remote) pinerc:

Viewer Margin Right               = 72c

Not sure it's relevant but in vim I have
textwidth=72
formatoptions=tcqlw

This means that format-flowed emails wrap at 72 characters on my screen in alpine but when I reply to one of these emails the resulting text gets wrapped at column 80 in vim.

I can then tell vim to reflow to get back to 72 character widths but is there a config setting somewhere to tell alpine to give vim the 72 char wrapped text instead of the 80 char wrapped text?

I understand that when you use an external editor, that external editor has the control of editing. When back on Pine, the text is not changed, not reflowed unless you command it.



Yes, but both alpine and my editor are told two wrap the text at 72 characters. And what I see in alpine when I view your replys is:
(f-f trailing spaces are removed so this will have hard line breaks)
====
This means that format-flowed emails wrap at 72 characters on my
screen in alpine but when I reply to one of these emails the resulting
text gets wrapped at column 80 in vim.

====

but as you can see above (in the raw email), my editor has received
==== (The literal $ replace the end of line spaces from format-flowed)
This means that format-flowed emails wrap at 72 characters on my screen in$
alpine but when I reply to one of these emails the resulting text gets$
wrapped at column 80 in vim.
$
====

and if I copy that text and then reflow the paragraph in vim with `gqap` I get
==== (with the trailing spaces manually replaced with $)
This means that format-flowed emails wrap at 72 characters on my$
screen in alpine but when I reply to one of these emails the$
resulting text gets wrapped at column 80 in vim.
$
====

The word resulting has moved line as a result of the extra quote character from what was originally on the screen in alpine, and I don't mind whether alpine leaves it on the same line or moves it to the next line, but I want to know if there's a way to stop it moving that "screen in" onto the previous line so that the lines are wrapped at 80 characters when the editor receives them instead of wrapped at 72 characters as I see on the screen in alpine.


Certainly I can `gqG` and reflow the entire document in vim in three key strokes but I don't always want to reflow everything, some lines can deliberately be longer than 80 characters and that will cause vim to wrap them.

And fwiw, this is what that paragraph looks like originally as received via the mailing list (again with trailing spaced replaced by $)
====
This means that format-flowed emails wrap at 72 characters on my screen$
in alpine but when I reply to one of these emails the resulting text$
gets wrapped at column 80 in vim.

====
f-f is working nicely except for the alpine->editor transition where alpine seems to be using 80 characters to wrap f-f when it writes the (in my case /tmp/pico.<nnnn>) file.

Tim.
_______________________________________________
Alpine-info mailing list
Alpine-info@u.washington.edu
http://mailman12.u.washington.edu/mailman/listinfo/alpine-info

Reply via email to