Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!bywater!scifi!hybrid!javey From: javey@hybrid.UUCP (shahram javey) Newsgroups: comp.editors Subject: Re: aligning columns in vi Keywords: columns, vi, stress Message-ID: <1991Feb12.015036.8245@hybrid.UUCP> Date: 12 Feb 91 01:50:36 GMT References: <4868@male.EBay.Sun.COM> <24231@neptune.inf.ethz.ch> Organization: The Home for Unemployed Basselopes, Toronto, Ontario, Canada Lines: 27 In article <24231@neptune.inf.ethz.ch> wyle@iiic.ethz.ch (Mitchell Wyle) writes: >In article <4868@male.EBay.Sun.COM> The manager of information systems >for Sun Microsystems' Eastern Headquarters, Carl Johnson, with e-mail >address: carl@mugwump.EBay.Sun.COM tells us: > >> In vi what I want to do is align certain characters into the same >> column. For instance :- >> /*codecodecodecodecode */ >> /*codecodecodecodecodecodecodecodecodecodecodecodeco */ >> /*codecodecodecodecodecodecodecodecodecode */ >> some command like :1,$s/\/\*/>>\/\*/ ?? >> would end up aligned so :- >> /*codecodecodecodecode */ >> /*codecodecodecodecodecodecodecodecodecodecodecodeco */ >> /*codecodecodecodecodecodecodecodecodecode */ >> I cannot get the above to work. What is the magic component? How can replacing /* by /*>> align comments? I hope someone explains the above. > >Use indent(1), Carl. > >Indent does it better than vi macros. > I don't have access to indent. I use vi on my DOS machine (please don't tell me to change my OS. DOS plus MKS took-kit is all I can handle). cheers...shahram javey