Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2003 19:19:49 +0100 (CET)
From:      "Julien Gabel" <jpeg@thilelli.net>
To:        "Ruben de Groot" <mail25@bzerk.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Formatting an email for this list using vi
Message-ID:  <36959.194.119.92.65.1069093189.squirrel@webmail.thilelli.net>
In-Reply-To: <20031117162155.GA47312@ei.bzerk.org>
References:  <.128.250.18.41.1069023480.squirrel@www.k1x.org> <20031117144422.GA94866@charter.net> <49662.194.119.92.65.1069083849.squirrel@webmail.thilelli.net> <20031117162155.GA47312@ei.bzerk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>> I have just started learning to use vi, and remember someone posting
>>>> something a while ago about how to re-format an email reply to have
>>>> proper 60 character width or something like that, does anyone
>>>> remember how that is done?

>>> When you're in the editor:
>>>
>>> :set wm=20
>>>
>>> will give 60 character wrap.  (ie 80-20 = 60) (Note, I've
>>> done this here in this message and this is the wrap I'm
>>> getting.

>> Don't forget to set the columns option to 80 in order to this
>> tip to work. This option is set to 161 by default on my fresh
>> 5.1-RELEASE installation.

Just to correct myself : the columns option is based on the size
of the window when the editor is launched. It not very efficient
to do that this way.

> I use ":set wraplen=72". Works regardless of column width.

Yes, this is a better solution :)
--
-jg.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36959.194.119.92.65.1069093189.squirrel>