Computing.Net > Forums > Unix > Selecting large text on VI

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Selecting large text on VI

Reply to Message Icon

Name: aka
Date: August 1, 2006 at 08:19:47 Pacific
OS: WinXP/Linux
CPU/Ram: P4 / 255
Product: Custom
Comment:

First of all, cheers to all of you, there has been a while not posting here... It feels good to post again ;)

OK, I will go straight to the point, I have been some time without using *NIX nor some commands, my question is: How can I select a large text in a file using VI, without sending the file by email to another app.

Apportion: There is a file with about 500 lines, I want to select them all to copy all the lines to another email client, I cant send it thrue PINE or MAIL (some sysadmin requests :( ).

Any help will be appreciate.


Don´t freak out until you know the facts...Relax...!



Sponsored Link
Ads by Google

Response Number 1
Name: lchi2000g
Date: August 1, 2006 at 10:21:26 Pacific
Reply:

It's impossible to use vi to "select all" and copy outside of vi.

Use:

$ cat file.txt

to display the contents of the file on the screen. Then, copy the lines from the screen.

For examples:

If you use cygwin, right-click on the screen title bar and select "Edit", then "Select All"...

If you use putty, right-click on the screen title bar and select "Copy All to Clipborad"

Luke Chi


0

Response Number 2
Name: lchi2000g
Date: August 1, 2006 at 10:37:52 Pacific
Reply:

In vi, you only can "select" and write to the current file or another file.

Luke Chi


0

Response Number 3
Name: aka
Date: August 1, 2006 at 12:43:47 Pacific
Reply:

lchi2000g,

I'm using Putty, and selecting Copy All To Clipboard does not work as you mentioned before, it only copy the showed lines, but not all the 500 lines in the .txt file :(

Is there any other procedure ?

Don´t freak out until you know the facts...Relax...!


0

Response Number 4
Name: lchi2000g
Date: August 1, 2006 at 14:38:30 Pacific
Reply:

It worked on my putty. Try one more time. You also could use google to search "putty copy all to clipboard" to see if you need the latest version or...

Steps:

1. Reset Terminal
2. Clear Scrollback
3. Copy All to Clipboard

Luke Chi


0

Response Number 5
Name: lchi2000g
Date: August 1, 2006 at 14:47:09 Pacific
Reply:

You also need to right-click the top title bar to change the setting to 1000 to increase the # of lines of the scrollback before you "Copy All to Clipborad".

Window->Lines of scrollback 1000

Luke Chi


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Selecting large text on VI

Inserting text using vi www.computing.net/answers/unix/inserting-text-using-vi/2440.html

unix vi editor www.computing.net/answers/unix/unix-vi-editor/6785.html

How to edit large files? www.computing.net/answers/unix/how-to-edit-large-files/7481.html