6 ms·
The mmb-paste thing is called the 'yank buffer' (and it was a vi/Emacs feature that pre-dates clipboard-based copy/paste) - I use it extensively too, and one im
by danwills 1y ago
The mmb-paste thing is called the 'yank buffer' (and it was a vi/Emacs feature that pre-dates clipboard-based copy/paste) - I use it extensively too, and one important thing to know about it is that it only works on text and it 'yanks' the text when you mmb, so the source app must still be running at the time.
I think it's great that there are 2 ways to move things around, but it does help a lot to be very clear on how both of them work, and some apps do things a bit differently too (eg Ctrl+C in Houdini can be followed by mmb in a terminal, which is a bit unusual, but ok once understood)
- AStonesThrow 1y agoNo, it is not. Emacs may use the term "yank buffer" globally. vim does not: in vim, they are simply called "buffers". There is a command called "yank" because it is bound by default to "y" but this command is not the only way to place text into a buffer. https://www.oreilly.com/library/view/learning-the-vi/9780596529833/ch04s03.html https://www.oreilly.com/library/view/learning-the-vi/9780596... In X11, the text goes into the "[Primary] Selection" or the Cut Buffer[s]. https://www.xfree86.org/current/xcutsel.1.html https://www.xfree86.org/current/xcutsel.1.html CUT_BUFFER0 is the default, and obviously there can be more with higher numbers. But when you're pressing the middle mouse button, you're typically pasting the PRIMARY selection. There has never, ever been usage of "yank" in X11 documentation.