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. If you want to do it at the file/command level in vi you can put your cursor where you want the insert and :r !ssh user@remote_host cat /path/to/file -- Les Mikesell lesmikesell@xxxxxxxxx