RE: Copy/paste to another console
I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I do usually using mouse to block line then copy to another file) If you want to do what I think you want to do, you can copy to/from the system clipboard or whatever it's called. I do that to reply normally from the braindead top-posting crap that's enforced on LookOut (as co. policy; can be selected via menu options) to toss into 'vim', add leading ''s, then 'gqap' to reflow/reformat the text, then move it back to the reply window. Worx like a charm.. Anyhoo, if ^c/^x/^v (copy/cut/paste, respectively) don't float yer boat (and ^v will crash into a literal-character escape in 'vi' variants, incl 'vim'), then ^ins will be the equivalent of copy, ^del the equivalent of cut, and sh-ins the equivalent of paste. Sooo, you can highlight your line visually with 'v' and then arrow around to select however much of it you want, hit ^ins to copy it, then on the remote machine, sh-ins it to put it into the file.
Re: Copy/paste to another console
On 8/30/06, budsz [EMAIL PROTECTED] wrote: Hi, I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I do usually using mouse to block line then copy to another file) Why without mouse, if you can do it with mouse ? Yakov
Re: Copy/paste to another console
Shift+insert because it's a pain to have to use the mouse. btw, i think the first ctrl+ins, shift+ins, shift+del copy/paste/cut where intended to use with the mouse with the left hand. just a random tought :) On 8/30/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 8/30/06, budsz [EMAIL PROTECTED] wrote: Hi, I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I do usually using mouse to block line then copy to another file) Why without mouse, if you can do it with mouse ? Yakov -- The best education consists in immunizing people against systematic attempts at education. - Paul Feyerabend
Re: Copy/paste to another console
I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I do usually using mouse to block line then copy to another file) Why without mouse, if you can do it with mouse ? for the same reason I use vim... :) Vim users are usually keyboard junkies. It's also a lot easier when using my laptop, to avoid the track-pad altogether. -tim
Re: Copy/paste to another console
Ooops. i don't think you can do that btw. ignore my previous answer, please you are copying from two putty under windows. so you must pass the text to the windows clipboard. i don't have a windows box right now, but i'm pretty sure putty don't gets vim's yanks. but if you manage to pass it to the windows clipboard, shift+insert would work ;) have you tried to do [EMAIL PROTECTED] vim fileA.txt [EMAIL PROTECTED]:/home/you/fileB.txt then just yank and change buffers ;) On 8/30/06, Gabriel B. [EMAIL PROTECTED] wrote: Shift+insert because it's a pain to have to use the mouse. btw, i think the first ctrl+ins, shift+ins, shift+del copy/paste/cut where intended to use with the mouse with the left hand. just a random tought :) On 8/30/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 8/30/06, budsz [EMAIL PROTECTED] wrote: Hi, I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I do usually using mouse to block line then copy to another file) Why without mouse, if you can do it with mouse ? Yakov -- The best education consists in immunizing people against systematic attempts at education. - Paul Feyerabend -- The best education consists in immunizing people against systematic attempts at education. - Paul Feyerabend
Re: Copy/paste to another console
budsz wrote: Hi, I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I do usually using mouse to block line then copy to another file) Thank You If both programs can access a common clipboard, use it. Vim knows it as the + register. So, for instance, to yank three lines to the clipboard: +3yy and to paste the clipboard before the cursor: +P etc. Best regards, Tony
Re: Copy/paste to another console
On 2006-08-31, budsz [EMAIL PROTECTED] wrote: Hi, I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I do usually using mouse to block line then copy to another file) There is a very nice PuTTY manual at http://the.earth.li/~sgtatham/putty/0.52/htmldoc/ I see nothing there about allowing applications to access the clipboard, as would be necessary for vim users to be able to yank to or put from the clipboard with +y or +p. Further, there appears to be no way to copy, paste or select using the keyboard. From Section 3.1.1: PuTTY's copy and paste works entirely with the mouse. In order to copy text to the clipboard, you just click the left mouse button in the terminal window, and drag to select text. When you let go of the button, the text is automatically copied to the clipboard. You do not need to press Ctrl-C or Ctrl-Ins; in fact, if you do press Ctrl-C, PuTTY will send a Ctrl-C character down your session to the server where it will probably cause a process to be interrupted. So I think you're stuck using the mouse. However, if you could remote to box A from box B, or to box B from box A, you could remote to one of them from Windows, run 'screen' on that box, open a new 'screen' window, remote to the other box, then use 'screen's keyboard-driven copy and paste mechanism. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Wireless Division | Spokane, Washington, USA