On Fri, 2006-08-25 at 15:18 -0500, Les Mikesell wrote: > On Fri, 2006-08-25 at 15:53 -0500, Aaron Konstam wrote: > > > > > > How do i select the entire contents of the file using vi to copy and > > > then paste it to the other file > > > > > > For example > > > > > > vi copy --- > select the entire contents on one machine > > > vi paste ---> paste it on the second machine > > Two methods seem to occur to me: > > 1. scp - the file between machines. > > 2. ssh to the other machine in one window. Open a file in that window. > > Open the original file in another window. Select what you want > > using the left mouse button. The copy it into the file on the > > remote machine using middle mouse button. > > The 2nd method is simple if you can get everything on the screen, but > unlike GUI editors, vi doesn't 'know' about selections at the window > level. In something like nedit or gedit you could edit/select all, > edit/copy, move to remote window and edit/paste to take the whole > thing. I have to admit the above is true about vi. It is anoying I can do the complete copy in sections. Which I admit is a real pain if you have a larger file. > ======================================================================= Excess on occasion is exhilarating. It prevents moderation from acquiring the deadening effect of a habit. -- W. Somerset Maugham ======================================================================= Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list