Ctrl-A and pasting in vi editor

Thread Solved

Join Date: Nov 2009
Posts: 12
Reputation: chandini.david is an unknown quantity at this point 
Solved Threads: 0
chandini.david chandini.david is offline Offline
Newbie Poster

Ctrl-A and pasting in vi editor

 
0
  #1
Nov 8th, 2009
Helloo!

I have a .txt file with around 1000 lines in it - each line just has a number. What I want to do is to copy all 1000 lines and paste it into an excel sheet.

So, I went up to the first line, changed to visual mode, and used shift+g to select all lines. Then I used ctrl+insert to copy them and then I went to excel and pasted them - but, only 41 lines get pasted!!

Please help!!
Last edited by chandini.david; Nov 8th, 2009 at 5:56 pm.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster
 
0
  #2
Nov 9th, 2009
have you tried other programs?

my guess would be you are hitting a limit, it may be software or hardware. obviously if it is a limit in your hardware (memory), there is not much you can do, unless you can get it onto another computer.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 12
Reputation: chandini.david is an unknown quantity at this point 
Solved Threads: 0
chandini.david chandini.david is offline Offline
Newbie Poster
 
0
  #3
Nov 9th, 2009
Hmm... no, I don't think that's it. My lappy's brand new, and it's almost empty right now... Besides, 41 lines seems too much of a coincidence. That's exactly how many lines I see on the screen at a time. Also, I can copy 1000 lines of text from excel to other docs easily enough...
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 512
Reputation: blud will become famous soon enough blud will become famous soon enough 
Solved Threads: 17
Moderator
Staff Writer
blud blud is offline Offline
Linux Reject
 
0
  #4
Nov 10th, 2009
This is a limitation by "What's on the screen", if you want to use the vi copy function you could do something like '1000y' to put it into the yp keyboard.

If you want to do this easier, you can use gvim, select all, then use the copy button on the toolbar, which should get rid of the per screen limitation, or you can just rename the file to .csv and open it in excel, it will automatically put all the values on the first column.
--
<Something clever here>
RHCDS/MCP/DCSP
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 12
Reputation: chandini.david is an unknown quantity at this point 
Solved Threads: 0
chandini.david chandini.david is offline Offline
Newbie Poster
 
0
  #5
Nov 10th, 2009
Okay, thanks!!!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Getting Started and Choosing a Distro Forum


Views: 865 | Replies: 4
Thread Tools Search this Thread



Tag cloud for Getting Started and Choosing a Distro
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC