Path: utzoo!mnetor!uunet!yale!Ram-Ashwin From: Ram-Ashwin@cs.yale.edu (Ashwin Ram) Newsgroups: comp.sys.apollo Subject: Re: How to cut and paste a column Message-ID: <25722@yale-celray.yale.UUCP> Date: 25 Mar 88 03:16:24 GMT References: <12384916270.13.BEC.SHAPIN@ECLA.USC.EDU> Sender: root@yale.UUCP Reply-To: Ram-Ashwin@cs.yale.edu (Ashwin Ram) Organization: Computer Science, Yale University, New Haven, CT 06520-2158 Lines: 36 In-reply-to: BEC.SHAPIN@ECLA.USC.EDU (Ross Watkins) In article <12384916270.13.BEC.SHAPIN@ECLA.USC.EDU>, BEC.SHAPIN@ECLA (Ross Watkins) writes: > Rick Allard asks: > > Has anybody found the need and the solution > > to cutting a column out of a multicolumn > > area of characters, a table? Any Display > > Manager Jockeys that can help, I'd like to > > [unreadable...I think it said "buy them lunch"] > > I'm hardly a DM Jock, but I have been squeezing DM for awhile, trying > to get it to look more like EMACS I have a bunch of Emacs-like key bindings for the DM, which I can post if people are interested. The hardest one was getting ^K to kill to the end of the line correctly, making sure it joined the lines if you were already at the end of the line. I don't append successive kills to the kill-buffer, however. Barring this, the basic control, ESC and ^X key sequences work pretty much as in Emacs. > To cut a rectangular are out of any text file, first mark the top-left > corner, then cursor down to the bottom-right. Everything in between > will reverse-video, including the stuff outside your rectangle that ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > you don't want, but don't worry. Now use the DM command "XD -R", ^^^^^^^^^^^^^^ > which will cut the rectangular section from the text, and hold it in > the paste buffer. The inverse operation--pasting a column into the > middle of a table--is done with the companion command "XP -R" (don't > use the PASTE key!); bear in mind that if things don't line up exactly, > you will have some reformatting to do. You can use ECHO -R to highlight the rectangle correctly. -- Ashwin. ARPA: Ram-Ashwin@cs.yale.edu UUCP: {decvax,ucbvax,harvard,cmcl2,...}!yale!Ram-Ashwin BITNET: Ram@yalecs