From owner-freebsd-questions@FreeBSD.ORG Wed Oct 8 05:08:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CFC216A4B3 for ; Wed, 8 Oct 2003 05:08:31 -0700 (PDT) Received: from mail-7.tiscali.it (mail-7.tiscali.it [195.130.225.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9027543FD7 for ; Wed, 8 Oct 2003 05:08:28 -0700 (PDT) (envelope-from fcasadei@inwind.it) Received: from goku.kasby (82.84.238.21) by mail-7.tiscali.it (6.7.019) id 3F83C224000350C7 for freebsd-questions@freebsd.org; Wed, 8 Oct 2003 14:08:27 +0200 Received: (qmail 3229 invoked by uid 1000); 8 Oct 2003 12:08:24 -0000 Date: Wed, 8 Oct 2003 14:08:24 +0200 From: Francesco Casadei To: Bryan Cassidy Message-ID: <20031008120824.GA3214@goku.kasby> Mail-Followup-To: Bryan Cassidy , freebsd-questions@freebsd.org References: <20031008062245.7ea8c9b1.b_cassidy@bellsouth.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <20031008062245.7ea8c9b1.b_cassidy@bellsouth.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-STABLE i386 cc: freebsd-questions@freebsd.org Subject: Re: vi and wrap text X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2003 12:08:31 -0000 --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--