Re: vi editor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux