944,110 Members | Top Members by Rank

Ad:
Nov 8th, 2009
0

Ctrl-A and pasting in vi editor

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chandini.david is offline Offline
14 posts
since Nov 2009
Nov 9th, 2009
0
Re: Ctrl-A and pasting in vi editor
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.
Reputation Points: 85
Solved Threads: 64
Practically a Master Poster
sillyboy is offline Offline
686 posts
since Mar 2007
Nov 9th, 2009
0
Re: Ctrl-A and pasting in vi editor
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...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chandini.david is offline Offline
14 posts
since Nov 2009
Nov 10th, 2009
0
Re: Ctrl-A and pasting in vi editor
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.
Moderator
Staff Writer
Reputation Points: 154
Solved Threads: 18
Linux Reject
blud is offline Offline
570 posts
since Apr 2004
Nov 10th, 2009
0
Re: Ctrl-A and pasting in vi editor
Okay, thanks!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chandini.david is offline Offline
14 posts
since Nov 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Getting Started and Choosing a Distro Forum Timeline: Trouble using nohup with &
Next Thread in Getting Started and Choosing a Distro Forum Timeline: choosing your own distro





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC