Path: utzoo!attcan!utgpu!watmath!iuvax!rutgers!orstcs!nucthy!ghe From: ghe@nucthy.physics.orst.edu (Guangliang He) Newsgroups: comp.unix.questions Subject: Re: tabs in vi Message-ID: <12187@orstcs.CS.ORST.EDU> Date: 23 Aug 89 14:55:21 GMT References: <7901@ardent.UUCP> <36790001@hpindwa.HP.COM> Reply-To: ghe@nucthy.PHYSICS.ORST.EDU (Guangliang He) Organization: Dept. of Physics, Oregon State University Lines: 24 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. = =While inside vi you can type a colon to get to the command line and then enter: = =set tabstop=4 = [deleted text] No, 'set tabstop=4' does not do what he requested in the original post. He wants REAL space. 'set tabstop=4' makes tabs look like 4 spaces but if you do a 'set list', you can see tab still there. On this question, I don't see any easy solution. ----------------------------------------------------------------------- | USMAIL: Guangliang He | INTERNET: ghe@PHYSICS.ORST.EDU Department of Physics | BITNET: hegl@ORSTVM.BITNET Oregon State University | Corvallis, OR 97331 | PHONE: (503) 737-4631 | -----------------------------------------------------------------------