Results 1 to 2 of 2
I'm connected remotely to a server and editing files with Vi. I have to put a bunch of stuff from one file to this other one. How do you copy ...
- 08-14-2008 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 6
Using Vi remotely
I'm connected remotely to a server and editing files with Vi. I have to put a bunch of stuff from one file to this other one. How do you copy and paste bulk using vi in a terminal? also is there a way to copy from a notepad document on my hard drive and paste it into the Vi document on the server?
Thanks
- 08-14-2008 #2
Hello,
how you copy&paste in the document with the mouse depends on the SSH client you use. I know that it works with Putty as well with GNOME terminal+standard SSH client. This works in both direction so you could copy
Server File1-> your local notebook ->Server File2
Remember to press 'i' for insert mode first.
On the other hand, you could copy&paste directly in Vi.
Even better is ViM, it shows you the marked lines. Then you open a new file in the very same editor, was :l filename2 I think and paste the stuff in that file.
But I forget how to do it
Was labeled yanking or so in the help.


Reply With Quote