Path: utzoo!mnetor!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!osu-cis!n8emr!lwv From: lwv@n8emr.UUCP (Larry W. Virden) Newsgroups: comp.unix.questions Subject: Vi question Message-ID: <499@n8emr.UUCP> Date: 17 Mar 88 17:47:55 GMT Reply-To: lwv@n8emr.UUCP (Larry W. Virden) Distribution: na Organization: Ham BBS, Columbus,Oh. 614-457-4227 (300/1200,8N1) Lines: 17 Keywords: vi, quit with saved file When I go into vi with two edit files specified, I sometimes would like to be able to edit just the first and say "Write out these changes and get out of the program all together". I tried writing a macro called Q which would do a :wq! and that didnt work. I then tried to get it to do: :wq!\n:q! and that didnt seem to work. Anyone have any more ideas? Thanks! -- Larry W. Virden 75046,606 (CIS) 674 Falls Place, Reynoldsburg, OH 43068 (614) 864-8817 osu-cis!n8emr!lwv (UUCP) osu-cis!n8emr!lwv@PSUVAX1 (BITNET) We haven't inherited the world from our parents, but borrowed it from our children.