Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!motcsd!hpda!hpcupt1!hpindwa!sgordon From: sgordon@hpindwa.HP.COM (Shaun Gordon) Newsgroups: comp.unix.questions Subject: Re: tabs in vi Message-ID: <36790001@hpindwa.HP.COM> Date: 22 Aug 89 16:19:23 GMT References: <7901@ardent.UUCP> Organization: Hewlett-Packard, Cupertino CA Lines: 23 > 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 If you want tabs to default to 4 you should create a file .exrc in you home directory (if it doesnt already exist) and put the set command in it. It should look like it does above (i.e. no colon.) By the way, if you want to see what other options you can change in vi, you can type a colon and then: set all and this will show you all of the options. I hope this helps. -Shaun