Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!mtxinu!rtech!ingres!sergio From: sergio@ingres.com (Sergio Aponte) Newsgroups: comp.editors Subject: Re: VI : move current plus n lines to bottom (the answer!) Message-ID: <1990Sep25.161123.9050@ingres.Ingres.COM> Date: 25 Sep 90 16:11:22 GMT References: <1990Sep20.231510.4199@ingres.Ingres.COM> <1990Sep22.173733.28318@ddsw1.MCS.COM> Reply-To: sergio@squid.Ingres.COM (Sergio Aponte) Organization: Ingres Corporation, Alameda CA 94501 Lines: 37 In article <1990Sep22.173733.28318@ddsw1.MCS.COM> dattier@ddsw1.MCS.COM (David W. Tamkin) writes: ><1990Sep20.231510.4199@ingres.Ingres.COM> by sergio@squid.Ingres.COM (Sergio >Aponte): > >| In VI, I find myself in the need to move the current+n lines >| to the bottom of the file. I dont know much about macros. Can >| one be writen that will move the current plus n lines to the >| bottom of the current file? >| It would be nice to type "6B" and have the lines moved. > > >:map V "zddG"zp [again, that's a capital gee, not a numeral six] > > >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 I deleted some lines for brevity. I ended up with map Z "zddmzG"zp'z which also lets me get back to where I started from. That way, I can take a "chunk" of lines, move it to the end, and continue editing where I was. Thank you all for the e-mail. I got it all. PS: There was mention of using "zddG"zp'' and the '' was supposed to put me back. This gave me an error when I tried using it. What did I do wrong, if anybody knows? Sergio -- ------------------------------------------------------------------------------- | Internet: sergio@squid.ingres.com Sergio L. Aponte, MTS @ Ingres Corp. | | UUCP : {sun,mtxinu,pyramid,pacbell,hoptoad,amdahl}!ingres!squid!sergio | -------------------------------------------------------------------------------