From owner-freebsd-questions@FreeBSD.ORG Sat Feb 11 20:15:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 1A4E216A420 for ; Sat, 11 Feb 2006 20:15:14 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 420F443D4C for ; Sat, 11 Feb 2006 20:15:12 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (patr530-a158.otenet.gr [212.205.215.158]) (authenticated bits=128) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k1BKEhFP020454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 11 Feb 2006 22:14:55 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id k1BKEgI9001579; Sat, 11 Feb 2006 22:14:42 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id k1BKEgo9001578; Sat, 11 Feb 2006 22:14:42 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 11 Feb 2006 22:14:42 +0200 From: Giorgos Keramidas To: David Banning Message-ID: <20060211201442.GG1410@flame.pc> References: <20060211184600.GA85555@skytracker.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060211184600.GA85555@skytracker.ca> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.313, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.89, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: freebsd-questions@freebsd.org Subject: Re: formatting text from within vi X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 20:15:14 -0000 On 2006-02-11 13:46, David Banning wrote: > I am familiar with the !}fmt used in vi to reformat a paragraph, but > I wondered how, or if it is possible to do more complex formatting. > > I am thinking specifically of numbering, or creating points. I am familiar > with the > > .AL > .LI > point 1 > .LI > point 2 > .LE > > that can be run with "nroff -mm", but I notice that it can not be run > successfully with, say "!}nroff -mm" from within vi. For simpler numbering of lines, you can use }!nl Or even !}cat -n For more complex formatting, I usually resort to the block-editing features or editors/vim-lite or to Emacs, which is my favorite :)