Formatting an email for this list using vi

Gary gv-list-freebsdquestions at
Mon Nov 17 05:34:58 PST 2003

Hi Frederick,

--On Monday, November 17, 2003 09:58:00 AM +1100 Frederick Bowes 
<fred at> wrote:

> 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?

Well, I use VIM instead of VI, it is an "enhanced version"

For automatic settings, set up a .vimrc file in your home dir.

Add in:

:set tw=74                 (to set your text width)

Or you can add this in manually on the VI command line after starting it.

Now to refomat an email, while preserving the > on previous quoted text, 
type in ESC gqip


More information about the freebsd-questions mailing list