On Thu, May 24, 2001 at 06:43:39PM +0200, Munish Chopra wrote:
> On Thu, May 24, 2001 at 11:14:37AM -0400, Louis LeBlanc wrote:
> > On Thu, May 24, 2001 at 06:03:09PM +0200, Munish Chopra sat at the 'puter and 
>typed:
> > > In my muttrc, I put the following to limit the number of characters per line to 
>72:
> > > 
> > > set editor = "vi -c 'set tw=72'"
> > > 
> > > When I compose a message in mutt, every time after I hit [enter]
> > > after typing in the subject, it spits out this:
> > > 
> > > option, 1: set: no tw option: 'set all' gives all option values
> > > Press Enter to continue:
> > > 
> > > Where am I going wrong? I ripped the tw=72 thing off someone
> > > else's muttrc that was on the net, but is it the wrong command to
> > > pass?
> > 
> > You probably want this:
> > set editor = "vi -c 'set textwidth=72'"
> 
> That doesn't help (same thing). By the way, I'm running
> FreeBSD...without vim or fancy vi clones.

In that case, use 'wm' (wrapmargin) instead of 'tw'.  Wrapmargin does
pretty much the same thing as textwidth, but the value is the size of
the right margin.  So, if you always edit in an 80-character-wide
terminal, wm=8 is the same as tw=72.  Try either of these:

    set editor = "vi -c 'set wm=8'"
    set editor = "vi '+set wm=8'"

Use the second form if your vi is really old.

Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | RF Communications PGU
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA

Reply via email to