Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!bbs!ddsw1!dattier From: dattier@ddsw1.MCS.COM (David W. Tamkin) Newsgroups: comp.editors Subject: Re: edit multiple files in vi? Message-ID: <1990Sep25.195517.13604@ddsw1.MCS.COM> Date: 25 Sep 90 19:55:17 GMT References: <1990Sep19.133419@ai.mit.edu> <1990Sep24.053330.3024@monu6.cc.monash.edu.au> Reply-To: dattier@ddsw1.MCS.COM (David W. Tamkin) Organization: Contributor Account at ddsw1, Wheeling, Illinois Lines: 31 edp367s@monu6.cc.monash.edu.au (Rik Harris) wrote in <1990Sep24.053330.3024@monu6.cc.monash.edu.au>: | jansteen@cwi.nl (Jan van der Steen) writes: | >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. I saw three problems with those mappings: (1) you cannot use more than one named register to save more than one thing at a time, (2) you cannot capitalize the register name to append instead of replacing, and (3) using ndd or nyy to delete or yank n whole lines becomes hopeless, because d" and y" are not legitimate command sequences. (Since in most vi versions Y does yy instead of doing y$, #3 is not a problem for yanking.) Better to do without the automatic "z and keep the flexibility. David Tamkin Box 7002 Des Plaines IL 60018-7002 708 518 6769 312 693 0591 MCI Mail: 426-1818 GEnie: D.W.TAMKIN CIS: 73720,1570 dattier@ddsw1.mcs.com