[lug] Wrapping lines of text in VIM
Matt Thompson
thompsma at colorado.edu
Fri Sep 17 08:13:02 MDT 2004
On Thu, 2004-09-16 at 17:44, Bill Thoen wrote:
> On Thu, 16 Sep 2004, David Morris wrote:
>
> > :set textwidth=65
> > gg
> > gqG
> >
> > The 'gq' command will auto-format the text in over the range
> > specified (in this case, from the current position to the
> > end of the file).
>
> Ah! Just what I needed!
>
> Thanks for the help everyone, and also for the tip on fmt. That's another
> tool I should look into as well. It seems to me that if there's something
> you can do with plain text, there's a UNIX/Linux tool that can do it!
I came in late to this, but I wondered, did anyone mention using
fold(1)? I usually use that to wrap files that have unruly lines. A
bit primitive, I know, but it works.
--
Learning just means you were wrong and they were right. - Aram
Matt Thompson -- http://ucsub.colorado.edu/~thompsma/
440 UCB, Boulder, CO 80309-0440
JILA A510, 303-492-4662
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20040917/67a966a6/attachment.pgp>
More information about the LUG
mailing list