Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Selecting large text on VI

Original Message
Name: aka
Date: August 1, 2006 at 08:19:47 Pacific
Subject: Selecting large text on VI
OS: WinXP/Linux
CPU/Ram: P4 / 255
Model/Manufacturer: 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...!


Report Offensive Message For Removal


Response Number 1
Name: lchi2000g
Date: August 1, 2006 at 10:21:26 Pacific
Subject: Selecting large text on VI
Reply: (edit)
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


Report Offensive Follow Up For Removal

Response Number 2
Name: lchi2000g
Date: August 1, 2006 at 10:37:52 Pacific
Subject: Selecting large text on VI
Reply: (edit)
In vi, you only can "select" and write to the current file or another file.

Luke Chi


Report Offensive Follow Up For Removal

Response Number 3
Name: aka
Date: August 1, 2006 at 12:43:47 Pacific
Subject: Selecting large text on VI
Reply: (edit)
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...!


Report Offensive Follow Up For Removal

Response Number 4
Name: lchi2000g
Date: August 1, 2006 at 14:38:30 Pacific
Subject: Selecting large text on VI
Reply: (edit)
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


Report Offensive Follow Up For Removal

Response Number 5
Name: lchi2000g
Date: August 1, 2006 at 14:47:09 Pacific
Subject: Selecting large text on VI
Reply: (edit)
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


Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Selecting large text on VI

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




acer 312T BIOS problem

K7 Turbo possible max fsb?

Pc anywher problem

WinFLP & OE/Outlook2003

Computer resets after a few minutes


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC