Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mandrill!gatech!udel!rochester!cornell!uw-beaver!tektronix!tekig5!tekig4!clarkm From: clarkm@tekig4.TEK.COM (Clark Morgan) Newsgroups: comp.unix.questions Subject: Re: HOW DO I MAKE VI'S AUTOINDENT NOT USE TABS? Message-ID: <2965@tekig4.TEK.COM> Date: 25 Jun 88 03:35:15 GMT References: <3493@ut-emx.UUCP> <8979@dartvax.Dartmouth.EDU> Reply-To: clarkm@tekig4.UUCP (Clark Morgan) Organization: Tektronix, Inc., Beaverton, OR. Lines: 31 In article <8979@dartvax.Dartmouth.EDU> andyb@burcoat.uucp (Andy Behrens) writes: >First get rid of any tabs that are in the file, then ":set tabstop=60". >This will force vi not to use a tab unless the line is indented at >least 60 spaces. > >You won't be able to use the tab key any more, but you can still use ^T >and ^D for indenting. You might like to map the tab key to ^T if you >are used to it. (:map ^V^V^I ^V^T). > > Andy Behrens > Yep, this is about the same technique I use. But it sure is a pain in the butt if you've set up the EXINIT environment variable like Andy describes above _and then_ edit a file that's littered with tabs. Flick bic: Vi is a nice editor: it gets the job done quickly and uses minimal key strokes to accomplish a given task. But I can't stand the fact that it puts tabs in my documents/programs when I never even touched the Tab key. If the designers of this program thought that auto-tab-insertion was such a neat idea, how come they didn't go the extra mile and give us an option that says: "I won't auto-tab your files." Lord knows Vi has an option for everything else :-). Are you listening AT&T, Berkely? -- Clark Morgan, Tektronix Lab Instruments Engineering (503) 627-3545 clarkm@tekig4.LEN.TEK.COM | {...,decvax,uw-beaver}!tektronix!tekig4!clarkm US Mail: Tektronix, P.O. Box 500, DS 39-087, Beaverton, OR 97077