On Wed, Oct 08, 2003 at 06:22:45AM -0500, Bryan Cassidy wrote: > I want to know is there a way to wrap the text in vi? In emacs you can > just hit Esc+q and it will wrap the text. How about vi? > _______________________________________________ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > end of the original message
From vi(1) manpage :
[...]
wraplen, wl [0]
Vi only. Break lines automatically, the specified number of
columns from the left-hand margin. If both the wraplen and
wrapmargin edit options are set, the wrapmargin value is used.
wrapmargin, wm [0]
Vi only. Break lines automatically, the specified number of
columns from the right-hand margin. If both the wraplen and
wrapmargin edit options are set, the wrapmargin value is used.
wrapscan, ws [on]
Set searches to wrap around the end or beginning of the file.
[...]
So, for example, the command ':set wl=72' will wrap lines at 72
characters.
Francesco Casadei
--
You can download my public key from http://digilander.libero.it/fcasadei/
or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...)
Key fingerprint is: 1671 9A23 ACB4 520A E7EE 00B0 7EC3 375F 164E B17B
pgp00000.pgp
Description: PGP signature
