Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2003 14:08:24 +0200
From:      Francesco Casadei <fcasadei@inwind.it>
To:        Bryan Cassidy <b_cassidy@bellsouth.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: vi and wrap text
Message-ID:  <20031008120824.GA3214@goku.kasby>
In-Reply-To: <20031008062245.7ea8c9b1.b_cassidy@bellsouth.net>
References:  <20031008062245.7ea8c9b1.b_cassidy@bellsouth.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
> end of the original message

=46rom 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=3D72' will wrap lines at 72
characters.

	Francesco Casadei

--=20
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


--ZPt4rx8FFjLCG7dd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/g/44fsM3XxZOsXsRAqIXAKCKz4vQS3bf863t/hhuOsliMPy15gCgnIFu
8VKq8UHfS7XKkSbhJoUu4UI=
=fh7K
-----END PGP SIGNATURE-----

--ZPt4rx8FFjLCG7dd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031008120824.GA3214>