Message received by private mail: forward to list. Best regards, Tony.
-------- Original Message -------- Subject: Re: Copying a Massive amount of text to the clipboard Date: Wed, 21 Mar 2007 15:06:31 +0530 From: MM <[EMAIL PROTECTED]> To: A.J.Mechelynck <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Also another way which I like to do it is fold the text you want to copy using markers {{{ & }}} . Then just copy and paste the folded line .. On 3/21/07, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
maskkkk wrote: > Hello, > > I have a 9MB XML files I am working with. > > I would like to select a block of about 90,000 lines in a file and copy them > to the clipboard so they can be pasted in another file. > > Doing this with the mouse would probably take until the sun burns out. > > Is there anyway to say to vim: > > "Start selecting on line 3, and continue selecting to 90,000" ? > > Thank you, > Andrew J. Leer > > Method I. Assuming you want to fine-tune the number of lines selected: 1. Go to line 3 :3 2. Start linewise visual mode V 3. Go down 90,000 lines, selecting from line 3 to line 90003 90000j 4. Adjust the end of the selection by moving the cursor up or down as needed, using j k ? / etc. 5. Yank the visual selection into the clipboard "+y Method II: If you know exactly the line numbers you want: :3,90003y + For Method II, see ":help :y". Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 127. You bring your laptop and cellular phone to church.