Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!aurora!ames!pasteur!agate!web5b.berkeley.edu!shipley From: shipley@web5b.berkeley.edu (Peter Shipley) Newsgroups: comp.unix.questions Subject: Re: to space under vi, VI SUMMARY COMING SOON... Message-ID: <6659@agate.BERKELEY.EDU> Date: 22 Jan 88 10:05:47 GMT References: <462@gordon.UUCP> <239@unicom.UUCP> Sender: usenet@agate.BERKELEY.EDU Reply-To: shipley@web5b.berkeley.edu.UUCP (Peter Shipley) Organization: University of California, Berkeley Lines: 32 Keywords: vi, tab, vi summary In article <239@unicom.UUCP> daniel@unicom.UUCP (Dan "I want to Ski Tam!" Smith) writes: }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: } }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) What is wrong with: :%!unexpand Pete Shipley: email: shipley@violet.berkeley.edu Flames: cc-29@cory.berkeley.edu ucbvax!violet!shipley ucbvax!cory!cc-29 Spelling corections: /dev/null Quote: "Anger is an energy"