Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!charon!piring.cwi.nl!jansteen From: jansteen@cwi.nl (Jan van der Steen) Newsgroups: comp.editors Subject: Re: edit multiple files in vi? Message-ID: Date: 21 Sep 90 08:32:19 GMT References: <1990Sep19.133419@ai.mit.edu> Sender: news@cwi.nl Lines: 32 Dan_Bloch@TRANSARC.COM writes: >A few additions to the recent discussion on editing multiple files >in vi: [stuff deleted...] > - "Cutting and pasting" between files is almost as easy as within a > single file; you just have to use the named buffers for y and d > commands. That is, yy will be forgotten when you change files, but > "ayy will still be known. [Hot tip: "Ayy appends to the buffer > instead of replacing it.] And if you include the following mappings in your .exrc (or EXINIT variable) the cut and yank buffers will be global by default: map D "zD map d "zd map p "zp map P "zP map y "zy map Y "zY -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Jan van der Steen jansteen@cwi.nl Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands