[svlug] Re: Par rocks

Marc MERLIN marc_merlin at magic.metawire.com
Mon Nov 30 10:52:58 PST 1998


On 29 Nov 1998 22:29:57 -0800, Seth David Schoen <schoen at uclink4.berkeley.edu> wrote:
>!}par
>
>For Par, see  "http://http.cs.berkeley.edu/~amc/Par" -- I used  it above to
>reformat your quoted text (just for fun), and it worked very nicely.
>
>Both fmt and par (which obsoletes  fmt) have some useful options, including
>line  width.  Actually  learning  to  use par  is  something like  actually
>learning to use  procmail, and I haven't done either.   You might, instead,
>want to use other people's recipes most of the time. :-)

Indeed, the par documentation is a little "tedious" to read, however the
tool is great
In vimrc, I have:
" Key mappings for par (text reformatting)
vmap  !par -w76 -gjq -dh -p3
vmap X !par -w76 -gjq -p2 -dh<CR>
vmap F !par -w76 -gjq<CR>
vmap f !par -w80<CR>

You also have to set PARINIT to 'rTbgqR B=.?_A_a Q=_s>|:' for the above to
work well.

1) reformats enumerated lists like this one
2) reformats unumerated lists (- item)
3) reformats Email and news messages
4) reformats to 80 cols without right justification (mostly for HTML)

Usage: select block of text with 'V' and type the par key you want.

Marc
-- 
"Microsoft is to software what McDonalds is to gourmet cooking"
 
Home page: http://marc.merlins.org/ (friendly to non IE browsers)
Finger marc at merlins.org for PGP key and other contact information

--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
see http://www.svlug.org/mdstuff/lists.shtml for posting guidelines.



More information about the svlug mailing list