Xref: utzoo comp.editors:932 comp.unix.questions:16302 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!zardoz!dhw68k!felix!art From: art@felix.UUCP (Art Dederick) Newsgroups: comp.editors,comp.unix.questions Subject: Re: Centering lines in vi Message-ID: <112512@felix.UUCP> Date: 12 Sep 89 01:12:07 GMT References: <2283@umbc3.UMBC.EDU> Reply-To: art@felix.UUCP (Art Dederick) Organization: FileNet Corp., Costa Mesa, CA Lines: 14 In article <2283@umbc3.UMBC.EDU> rostamia@umbc3.UMBC.EDU (Rouben Rostamian) writes: > >Does anyone know a combination of commands that will center a given line >(or better yet, a range of lines) in vi? I do this by mapping a key sequence to pass the range of lines through nroff using the .ce request. I'm sure there are other formatters that could do the same. The use of filters to operate on vi's buffer has long been a means to add functionality to vi without the baggage of extra use-once-in-a-while code in vi. My $.02 on the subject. Art D. art@felix.uucp