l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Apr 22 10:29

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Email formatting fun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Email formatting fun

on Tue, Apr 20, 2004 at 10:23:20AM -0700, Jonathan McPherson (jamcp@ucdavis.edu) wrote:
> Hey all,
> I use mutt to read my email, and vim to compose messages.  Judging from
> the headers on the mail messages around the list, many of you are in the
> same boat.
> I like my email to be as well-formatted as possible.  

I'm assuming you're referring to _outgoing_ mail.  Though I'm known to
reflow incoming mail, unless I delete it, particularly for shit that's
been horribly mangled through several passes of Yahoo, Hotmail, and

> Towards that end, I use a paragraph formatter named par[1] to format
> my email messages.  par reflows paragraphs and chooses line breaks
> that are optimal (in some sense), using a dynamic programming
> algorithm that outperforms the greedy one used by "fmt" and most other
> mail clients.

I find the following vim settings solve most of my problems:

    set autoindent
    set ignorecase
    set incsearch
    set magic
    set nowrapscan
    set shiftwidth=4
    set showmatch
    set smartcase
    set tabstop=8
    set textwidth=72
    set background=dark     " makes syntax highlighting lighter

I also use a set of 'abbreviation' substitutions to fix common typso and
standardize some commonly used expressions.  The formulation with
trailing '_' reverts to the unmunged value.  Note that these
substitutions apply *both* in text and in *searches*, which always bites

    " Make RMS happy and other PC PCing...
    :ab Linux GNU/Linux
    :ab Linux_ Linux
    :ab Windows legacy MS Windows
    :ab Windows_ Windows
    :ab StarOffice StarOffice, that bloated stuck pig of an office suite,
    :ab StarOffice_ StarOffice
    :ab RIAA RIAA -- a transparent mask for Sony (Japan), EMI (England), Warner, BMG (Germany), Universal (France), the so-called American recording industry, to hide behind --
    :ab RIAA_ RIAA 

    " There are no typso in this document!
    :ab Eg: E.g.:
    :ab eg: e.g.:
    :ab (Eg: (E.g.:
    :ab (eg: (e.g.:
    :ab consistant consistent
    :ab Consistant Consistent
    :ab consistantly consistently
    :ab Consistantly Consistently
    :ab Idiological Ideological
    :ab idiological ideological
    :ab Miniscule Minuscule
    :ab miniscule minuscule
    :ab Occaisionally Occasionally
    :ab occaisionally occasionally
    :ab Occaisional Occasional
    :ab occaisional occasional
    :ab Fo Of
    :ab fo of
    :ab Seperate Separate
    :ab seperate separate
    :ab Seperately Separately
    :ab seperately separately
    :ab Sequitor Sequitur
    :ab sequitor sequitur
    :ab Sequiter Sequitur
    :ab sequiter Sequitur
    :ab Teh The
    :ab teh the
    :ab het the
    :ab hte the
    :ab Taht That
    :ab taht that

And finally:
    " For mail margins:
    au FileType mail set textwidth=72 expandtab

After this, I occasionally toss in a 'gqip' when I'm reflowing reedited


Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
    In 2002, everyone discovered that everyone else is using Linux.

Attachment: signature.asc
Description: Digital signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.