On Thu, 21 Feb 2002 at 13:47:10 -0500, Philip Mak wrote:
> On Thu, Feb 21, 2002 at 01:20:03PM -0500, David Collantes wrote:
> > > When I reply to a message that was composed without line wrapping
> > > (i.e. each paragraph is one long line), how can I make mutt wrap
> > > it before inserting "> "? e.g. instead of:
> > [.. A long line snipped ...]
> > 
> > It is not up to Mutt, but the editor you are using. I believe 'vi'
> > will allow you to do that, but 'nano' or 'pico' will not.
> 
> I would have thought that mutt would be able to wrap the lines before
> passing the message to 'vi'.
> 
> 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)?

You can use gq} (at least in vim...).  That will wrap a paragraph,
however, with quoted text (i.e., no spaces between each set of quote
characters) it will wrap the entire message.  gqG does the entire
message.  I also have the following map in my .vimrc which does the
same, but stops at sig lines:

omap F /^-- /<CR>

You can then use gqF to wrap up until the sig lines.

- jim

-- 
jim mock <[EMAIL PROTECTED]>   http://soupnazi.org/ | [EMAIL PROTECTED]

Reply via email to