Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!male!mugwump.EBay.Sun.COM!carl From: carl@mugwump.EBay.Sun.COM (Carl Johnson - Sun EHQ - MIS) Newsgroups: comp.editors Subject: aligning columns in vi Keywords: columns, vi, stress Message-ID: <4868@male.EBay.Sun.COM> Date: 6 Feb 91 17:21:10 GMT Sender: news@male.EBay.Sun.COM Lines: 17 Greetings, I dont think this got out the first time, my apologies if you've seen this already. 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 */ Cheers, Carl.