Re:Gnome Developers Re-Implement Middle-Click Paste
by dhimes on Wednesday September 04, 2013 @09:01AM
(#6327218)
I know it's possible, but I honestly don't know how to copy between instances of vi without it. This has been a huge convenience for me and I'm glad they are keeping it.
[ Parent
| on HN ]
Re:Gnome Developers Re-Implement Middle-Click Paste
by roberto on Wednesday September 04, 2013 @12:46PM
(#6328758)
I have these lines in my .Xresources file (which is sourced by .xinitrc with `xrdb -merge "${HOME}/.Xresources"`):
Shift<Key>Insert: insert-selection(CLIPBOARD) \n\ <Key>Insert: insert-selection(PRIMARY) \n\ Shift<Btn2Up>: insert-selection(CLIPBOARD) \n\ Shift<Btn1Down>: select-start() \n\ Shift<Btn1Motion>: select-extend() \n\ Shift<Btn1Up>: select-end(CLIPBOARD)
This way, if I select something with the mouse while pressing shift it will go to the clipboard. I can shift-select text on the terminal and paste to Firefox using ctrl-V, for example. And I can copy something from Firefox using ctrl-C and paste it on vim using shift-insert.
Normal selection goes to the other clipboard, so I can paste it using middle button or just clicking insert.
Re:Gnome Developers Re-Implement Middle-Click Paste
by dhimes on Thursday September 05, 2013 @02:37PM
(#6335971)
OK- that's a decent work-around, I'll admit. But middle-click is so easy...
Re:Gnome Developers Re-Implement Middle-Click Paste
by roberto on Friday September 06, 2013 @10:28AM
(#6340580)
I agree, but this doesn't eliminate middle click. I just like this because I use a trackpad on my laptop, so middle clicking is hard(ish).
Re:Gnome Developers Re-Implement Middle-Click Paste
by kps on Wednesday September 04, 2013 @11:02AM
(#6328006)
If you are using vim and it is built appropriately, the "* register reflects the contents of the primary selection and the "+ register the contents of the clipboard. See :help registers
Re:Gnome Developers Re-Implement Middle-Click Paste
by mugiwara on Thursday September 05, 2013 @06:23PM
(#6337505)
You can also use the default register instead of "+
:set clipboard=unnamed