Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!ariel!ucsvc.ucs.unimelb.edu.au!lu!ecsgrt From: ECSGRT@lure.latrobe.edu.au (GEOFFREY TOBIN, ELECTRONIC ENGINEERING) Newsgroups: comp.editors Subject: Vi/Ex: Editor command line editor? Message-ID: <5104@lure.latrobe.edu.au> Date: 27 Feb 91 04:24:26 GMT References: <4729@male.EBay.Sun.COM> <1991Jan30.175602.400@convex.com> <4748@male.EBay.Sun.COM> Organization: VAX Cluster, Computer Centre, La Trobe University Lines: 22 In article <4748@male.EBay.Sun.COM, carl@mugwump.UK.Sun.COM (Carl Johnson - Sun EHQ - MIS) writes: >prompt> vi afile.c >editeditedit >:e completelynewfile.c > error msg saying I haven't written my changes (query 1) > I dont care so.. >:e! some_amazing_vi_command to reference the last file (query 2) Carl's questions were answered, but how about this: :.,.+3s/some long expression/another long expression/g... OOPS! I mistyped something. u :BORING REPETITION WITH A ONE-CHARACTER CORRECTION OOPS! I miscued again. All this work for a once-only! :AND SO ON Command line editing for ex? GT Brought to you by Super Global Mega Corp .com