vi and wrap text
Francesco Casadei
fcasadei at inwind.it
Wed Oct 8 05:08:31 PDT 2003
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?
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031008/f8fa8d65/attachment.bin
More information about the freebsd-questions
mailing list