Path: utzoo!attcan!uunet!dino!sharkey!mailrus!iuvax!kinzler From: kinzler@iuvax.cs.indiana.edu (Stephen Kinzler) Newsgroups: comp.editors Subject: Re: vi abbreviation for :w :n ? Message-ID: <26465@iuvax.cs.indiana.edu> Date: 23 Sep 89 00:19:17 GMT References: <4728@tekcrl.LABS.TEK.COM> Organization: Indiana University, Bloomington Lines: 18 scott@tekcrl.LABS.TEK.COM (Scott Huddleston) writes: >When editing multiple files in vi, I'd like a faster(*) way to write >changes and move on to the next file than :w RETURN :n RETURN or >ZZ:n RETURN. Is there a faster way? Thanx in advance. This is pretty much what macros were made for. Here's mine: map q :w^M:n^M (the ^M's are really carriage returns, prefaced with ctrl-v) Put this in your EXINIT environment variable or your ~/.exrc file. ------------------------------------------------------------------------ | ., >{~) ['} / Stephen Kinzler \ + < : ~$[~{}== | | % > %()}@! ' / kinzler@iuvax.cs.indiana.edu \ '}~{ >' & )<} | | <@"??{.,'} / {ames,rutgers,att}!iuvax!kinzler \ &"(&@+}<+;@) | | ])"} +{) / Indiana Univ Dept of Computer Science \ @ }[^??^&. | ------------------------------------------------------------------------