Path: utzoo!attcan!uunet!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: 24 Sep 90 12:05:42 GMT References: <1990Sep19.133419@ai.mit.edu> <1990Sep24.053330.3024@monu6.cc.monash.edu.au> Sender: news@cwi.nl Lines: 50 edp367s@monu6.cc.monash.edu.au (Rik Harris) writes: >jansteen@cwi.nl (Jan van der Steen) writes: >>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 >Hmmmm, when I try this it says "no tail recursion". >My main concern was the command 'dd' but when I tried this to check, it >gave me the above diagnostic. >Do you actually use this???? I'm very sorry but when I tested the above macros I wasn't aware that I was running elvis the vi clone recently posted to (I think it was) comp.sources.misc. Unlike vi, elvis *does* allow the user to map vi primitives to keys with the same name. Jan van der Steen -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Jan van der Steen jansteen@cwi.nl Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands