Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!rpi!plato.rdrc.rpi.edu!kyriazis From: kyriazis@plato.rdrc.rpi.edu (George Kyriazis) Newsgroups: comp.unix.questions Subject: Re: tabs in vi Message-ID: <6902@rpi.edu> Date: 23 Aug 89 21:33:06 GMT References: <7901@ardent.UUCP> <36790001@hpindwa.HP.COM> <12187@orstcs.CS.ORST.EDU> Sender: usenet@rpi.edu Reply-To: kyriazis@plato.rdrc.rpi.edu.UUCP (George Kyriazis) Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 25 In article <12187@orstcs.CS.ORST.EDU> ghe@nucthy.PHYSICS.ORST.EDU (Guangliang He) writes: >In article <36790001@hpindwa.HP.COM> sgordon@hpindwa.HP.COM (Shaun Gordon) writes: >=> Is there a way to make it so that when ever I hit the TAB key >=> in 'vi' that I get 4 spaces rather than an actual tab? I would >=> rather not have to run expand after running vi, as I would only >=> want to do that if I actually changed the file. >= Well, while in vi you can do :g/./s/ / /g ^ ^ | 4 spaces a TAB character That will replace every TAB with 4 spaces in your whole file. George Kyriazis kyriazis@turing.cs.rpi.edu kyriazis@rdrc.rpi.edu ------------------------------