Is there any way of selecting a text with keyboard the way I do it normally using Shift+arrows.
feedback
|
migrated from stackoverflow.com Dec 20 '09 at 18:30
This question came from our site for professional and enthusiast programmers.
|
From the PuTTy manual:
| |||
|
feedback
|
|
so far as I know, there is no means of copying a selected area from the putty window to the Windows clipboard without using the mouse. there is a feature request on the putty site specifically for this functionality. http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/keyboard-copy.HTML the only way to copy information from the putty window to the Windows clipboard with a keyboard shortcut is to use the app system menu "copy all to clipboard" (which you can invoke from alt-space, provided you set the "Window > Behavior > System menu appears on ALT-Space" option configured in putty. pasting from the Windows clipboard into putty can be done with "shift-insert". if you need to copy and paste only within the terminal window itself, refer to either the man page for the shell you're using or consider using the unix "screen" app ('man screen' for more info), which allows text selection for copy / paste within the terminal window (similar to how vi's copy / paste works). an excerpt from the man pages:
| ||||
|
feedback
|
|
Yes, I do it all the time from my laptop (no mouse) — highlight and copy like normal, click on PuTTY window and hit Shift + Insert key. | ||||
|
feedback
|
|
I use GNU screen, I also have this in my screenrc to play nicely with vim:
A friend of mine has a hook in screen to copy the "screen clipboard" to one or both of the x clipboards (selection or clipboard) and I believe putty does the needed translations. I'll try to dig it up. You can probably arrange the same thing with xclip, the incantation you're looking for should be using I'd test quickly to see if | |||
|
feedback
|
|
This may be more of a workaround than a solution. Within vim, if you want to copy a block that you selected in visual mode (usually a block that spans many pages), you can write it to a file (by typing
Personally I prefer option 1. | ||||
|
feedback
|
|
Another somewhat makeshift suggestion is to activate Mouse Keys within Windows. In Windows 7 it's under the Ease of Access Center. 1) Click "Make the mouse easier to use". The default Mouse Keys hotkey is Alt + Shift + NumLock. Hopefully hitting this key combination won't interfere with your session (or just Alt + Tab out and activate it from outside putty). I believe hitting 0 on the numpad starts a click lock, allowing you to drag over the portion of text you want to highlight/copy. | |||
|
feedback
|