Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!mcsun!sunic!bmc!kuling!irf From: irf@kuling.UUCP (Bo Thide') Newsgroups: comp.editors Subject: Re: vi abbreviation for :w :n ? Message-ID: <1188@kuling.UUCP> Date: 24 Sep 89 20:08:35 GMT References: <4728@tekcrl.LABS.TEK.COM> Reply-To: irf@kuling.UUCP (Bo Thide') Organization: Dept. of Computer Systems, Uppsala University, Sweden Lines: 21 In article <4728@tekcrl.LABS.TEK.COM> 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. > If the alternative filename is known to 'vi' (i.e., you have been there before during your editing session) you can use-^ to toggle between the alternative file/buffer and the current one. If you have set the autowrite option the changes made in the file you just left will be recorded. Another possibility would be to use tags. ^ Bo Thide'-------------------------------------------------------------- | | Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden |I| [In Swedish: Institutet f|r RymdFysik, Uppsalaavdelningen (IRFU)] |R| Phone: (+46) 18-403000. Telex: 76036 (IRFUPP S). Fax: (+46) 18-403100 /|F|\ INTERNET: bt@irfu.se UUCP: ...!uunet!sunic!irfu!bt ~~U~~ -----------------------------------------------------------------sm5dfw