Path: utzoo!mnetor!uunet!tektronix!sequent!dougs From: dougs@sequent.UUCP (Doug Schwartz) Newsgroups: comp.unix.questions Subject: Re: Summary to " to space under vi" -- from original poster Message-ID: <3175@sequent.UUCP> Date: 29 Jan 88 18:24:43 GMT References: <465@gordon.UUCP> Organization: Sequent Computer Systems, Beaverton, OR Lines: 37 Keywords: vi, , summary, the guy who asked the question Summary: #3 won't work? In article <465@gordon.UUCP>, kelvin@gordon.UUCP (Kelvin Lam) writes: ... > Work arounds: > 3. Re-map key to insert n-. > Note for method 2 and 3: > This isn't what I want and it won't get the desired result > because not all 's can be replace by 8 spaces. > Alignment problem, you know. I must be missing something here. I thought you wanted to be able to insert N spaces when you pressed the Tab key while in {insert/open/append} mode in vi. If so, this suggestion will always work (put it in your .exrc file): :map!^V^V^V^V where: is a space is a tab ^V is control-v Note that this assumes you are using vi on the .exrc file. The ^V^V combination is needed, since the first one escapes the second one which in turn escapes the or 's. If this isn't what you want, tell me where I am amiss. Now if you use an advanced editor, such as emacs, you could just: (setq tab-width 8) -- Doug Schwartz Sequent Computer Beaverton, Oregon tektronix!ogcvax!sequent!dougs