On Wed, July 11, 2007 12:17 pm, John H. Robinson, IV wrote: > Lan Barnes wrote: >> I have a text doc with paragraphs in one line. What is the easiest way >> in >> vim or sed/awk or perl to reformat this doc so the long lines break at >> words at, say, 70 char or so? > > :set tw=70 > 1GgqG > > That should do it. > > -john >
Perfect. Much faster that the Tcl progie I wrote while waiting for my email to settle down (the multiple posts were because my MUA and the serever weren't talking). I can't believe I sent a no subject. Sorry :*) -- Lan Barnes SCM Analyst Linux Guy Tcl/Tk Enthusiast Biodiesel Brewer -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
