copying from vi to clipboard does not over writes clip board buffer

J dreadpiratejeff at gmail.com
Wed Feb 16 13:55:29 UTC 2011


Something I've found very useful and so far has worked for me on
various Linux distros and various terminals (aterm, Gnome Terminal,
xterm, Terminator, etc):

In the terminal, regardless of whether its running vi, emacs, or just
sitting in the shell, highlight the text you want with the mouse
(right click and hold and drag fro one end of the selection to the
other, then release right button.

In the target, where you want the text to appear, middle click, OR
click both right and left buttons simultaneously at the position you
want to paste the text.

That works pretty much ever time, universally, without having to
wonder if the text I copied is now in this buffer or that buffer or
wherever, and as long as you don't click anywhere else (do any other
click actions) you can middle click and paste that selected text as
many times as you want.

Cheers,

Jeff




More information about the ubuntu-users mailing list