Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!ll-xn!ames!pasteur!ucbvax!ucsfcgl!pixar!unicom!daniel From: daniel@unicom.UUCP (Dan "I want to Ski Tam!" Smith) Newsgroups: comp.unix.questions Subject: Re: to space under vi, VI SUMMARY COMING SOON... Summary: just moved and unpacked term....hang in there... Keywords: vi, tab, vi summary Message-ID: <239@unicom.UUCP> Date: 20 Jan 88 18:33:34 GMT References: <462@gordon.UUCP> Reply-To: daniel@unicom.UUCP (Dan "I want to Ski Tam!" Smith) Organization: Science Computer Center, MCC, Kentfield, CA Lines: 32 In article <462@gordon.UUCP> kelvin@gordon.UUCP (Kelvin Lam) writes: >To all the 'vi' expert out there(I hope this is the right group!) > >Is there a way to force 'vi' editor to insert appropreiate number of spaces >when key is hit? That is, instead of inserting the actual , >n number of spaces are inserted. >Kelvin Lam >(...!necntc!gordon!kelvin) :g/ /s// /g globally, search for tabs, substitute 8 spaces globally (on a line). Vi won't let you map the tab key, or I would suggest making a map! (input mode macro) for it. Applying the above command may or may not apply to your situation... For those who have sent requests for a VI Summary/Macro Tutorial: Thanks! there are a lot of you! I just moved, and looked at the files. I haven't updated them for about a year, and I've learned some things in that time, so I am going to update them. I'll post it late tonight or tomorrow (it's Wed. Morning). I figure there's 5-10 people who might like to see it for every request I've received (~20 so far...), so it makes more sense to post to the net. Thanks for your patience! dan dan smith, island graphics, marin co., ca | "My opinions: you can borrow them, uucp: ..!ucbvax!ucbcad!island!daniel | but don't take them out bowling" uucp: ..!ptsfa!unicom!daniel !well!daniels | (415) 892 TANK (h) 491 1000 (w)