On Thu, Feb 21, 2002 at 05:26:19PM -0800, Will Yardley wrote: > > I suppose I could code some sort of startup code in 'vi' to find and > > wrap long lines, but how would I make it only trigger when 'vi' is > > being started on composing a new reply (and not any other time, e.g. > > editing an existing message)? > > call vi with an option to do this (ie set editor="vim +'blah'......".
But that also affects when I press the [e]dit key to edit a message in my mailbox, for example. I'd want the option to ONLY take effect when vi is being called after I pressed [r]eply. > the problem is, that if you have stuff like this: > > blah blah blah > $ ls /foo/bar > $ cd blah > > it will get reformatted like this: > > blah blah blah $ ls /foo/bar $ cd blah Well, I was thinking of making it only reformat lines that are too long. This will make the above case work. Although, if someone sends the output of a program to me and it's just long enough to exceed 80 characters when "> " is added to it, then that would be wrapped undesirably. How does pine do it, anyway? pine wraps paragraphs in replies fine. They seem to have some heuristic or something that does the right thing almost all the time...