Date: Sat, 11 Feb 2006 22:14:42 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: David Banning <david+dated+1140115561.27b268@skytracker.ca> Cc: freebsd-questions@freebsd.org Subject: Re: formatting text from within vi Message-ID: <20060211201442.GG1410@flame.pc> In-Reply-To: <20060211184600.GA85555@skytracker.ca> References: <20060211184600.GA85555@skytracker.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-02-11 13:46, David Banning <david+dated+1140115561.27b268@skytracker.ca> 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 :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060211201442.GG1410>