[CLUE-Tech] vim question: doing a large document using join

Jed S. Baer thag at frii.com
Tue May 7 21:52:00 MDT 2002


On Tue, 07 May 2002 19:47:36 -0600
Kevin Cullis <kevincu at orci.com> wrote:

> Todd,
> 
> Yes, it works, but I was wondering if there are other ways or scripts
> that would do a whole file at once.  Does it sound like I'll have to use
> sed to do the whole file?

Perl to the rescue.

http://search.cpan.org/doc/DCONWAY/Text-Autoformat-1.04/lib/Text/Autoformat.pm

There was an article a while back in linux-magazine, or linux journal,
about using Perl to auto-format text. I don't recall if it used this
package, or one of the other many Perl text formatting packages.

A CPAN search turned up quite a few matches for "format"

So, you could write a quicky Perl script, and then !G {script-name}

-- 
Fight the CBDTPA: http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html

"Those who expect to reap the blessings of freedom must, like men,
 undergo the fatigue of supporting it." - Thomas Paine



More information about the clue-tech mailing list