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.

Reply via email to