Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!bloom-beacon!eru!luth!sunic!dkuug!daimi!epimetheus!erja From: erja@epimetheus.dk (Erik Jacobsen) Newsgroups: comp.editors Subject: Re: autowrite (was: Re: vi abbreviation for :w :n ?) Message-ID: <3436@daimi.dk> Date: 10 Oct 89 08:32:42 GMT References: <4728@tekcrl.LABS.TEK.COM> <26465@iuvax.cs.indiana.edu> <5486@alvin.mcnc.org> <455@tuewsd.lso.win.tue.nl> <3627@solo5.cs.vu.nl> Reply-To: erja@daimi.DK (Erik Jacobsen) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 26 In article <3627@solo5.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes: >This is the way to go! Once you know how to use `autowrite', life with vi >becomes so much simpler... >From the Vi Reference: >... > aw | autowrite - Write at every shell escape. > | (useful when compiling from within vi) >... > | `:map ^C :!cc %^V' to compile from within vi If you don't like autowrite you could do it: : map ^C :w!^V:!cc %^V >-- >The UNIX Way of doing something [...] is to make it look as much like a filter >as possible. (Richard O'Keefe) | Maarten Litmaath (mcsun!botter!maart) -------------------------------------------------------------------- Erik Jacobsen, Computer Science Department, Aarhus University Ny Munkegade, Building 540, DK-8000 Aarhus C, Denmark Phone: +45 86127188, Telefax: +45 86135725, Home phone: +45 86169199 Internet: erja@daimi.dk, Ham-radio: OZ6KS