Nevermind simply having an OS-level clipboard manager…
I think windows+v syncs to microsoft servers or something. I remember when I was running chris titus tech’s debloat script it removed that functionality.
An excellent option to have when one of the major use cases for clipboards is as an intermediary for password managers.
I hope they eventually get sued into the fucking ground.
There is for windows, and it’s further improved if you get power toys too
I took a look through my power toys settings, but couldn’t find anything there that had to do with the win+v clipboard history. Google hasn’t been any help either. What is it that I’m overlooking? How does powertoys improve the clipboard history feature?
I’m currently not on my windows pc at the moment but it could be that it’s functionality might actually be native to win 11? I don’t realise use it myself I just remember seeing it when originally getting powertoys and thinking that was cool
Application specific buffers are the first thing I disable on emacs. The OS one isn’t just integrated with every other normal piece of software, it’s also more powerful and easier to use.
… at least on my Linux, YMMV.
Ah, that is what I meant with OS-level clipboard manager (in fact, that is precisely what I thought of).
Gee, X11! How come your mom lets you have THREE clipboards?
Yes. X11 replaced X10’s obsolete cut buffers (which can be modified by any process) with state-of-the-art selections. There are three selections in X11: a primary, a secondary, and a clipboard.
In modern desktops, the primary selection is overwritten every time you select some text (including in the terminal), which makes its content very ephemeral. You can paste it with the middle mouse button.
The secondary selection is generally not used, but it’s present in the specification, and you can use xclip -selection secondary
to access it. Wayland doesn’t seem to have a secondary selection.
The clipboard selection is what most people understand to be THE clipboard. You have to write to it explicitly (through a keyboard shortcut, API, or CLI tool), and its content persists until it is overwritten, explicitly cleared, or the X server is killed. While the primary and secondary can only contain text, the clipboard can contain many kinds of data.
Okay I had no.idea. So on Plasma, I’m guessing when I copy anything, it’s writing it both the primary selection, and the clipboard selection and that’s how it stays in the clipboard manager thingy?
Same thing but reversed with multiple cursors :/
https://github.com/mg979/vim-visual-multi
I also missed multiple courses, but I started using vim-visual-multi in my nvim config and it’s been great. There’s a few others I tried that I couldn’t get to work quite right (usually some weird conflict with nvim-cmp) but I’ve had the best success with vim-visual-multi.
I also tried https://github.com/smoka7/multicursors.nvim and the experience was horrible. Then I tried https://github.com/brenton-leighton/multiple-cursors.nvim and I absolutely love it. It has conflict with cmp, but the README has great tutorial on disabling cmp only when using multiple cursors, and dealing with other plugins to maks them work or disable them in the multicursor mode.
FYI atom project is dead. There is a community form available but it was to buggy for me.
ive never had to think about clipboard buffers until i used a modal editor.
now i spend %60 of my time trying to figure out where the copied symbol went.
I don’t have the name handy, but there’s at least one plugin for vim that shows buffer previews in a popup. I’ve got it mapped to leader-sb (for “show buffer”).
You can see all registers in use with :registers
, to paste from a register say "2
in insert mode use key combination <ctrl-r>2
or in normal mode "2p
. You can check out more in :help registers
. Unnamed register or ""
is the system clipboard I think. To copy texts in a register you can prepend yank (/delete/cut, etc.) with that register "_
(for black hole register[1])
This is for neovim. Have keybinds for them and there saved you a plugin :D
Text yanked in this register is gone, i.e. it’s not saved in any register. ↩︎
any emacs elitists here?
Obligatory boo and/or hiss
I’ve also been meaning to give emacs a try but haven’t found the time or energy to figure out how to exit vim
I’m just an emacs … enjoyer (…?) and I just don’t understand the post. I’m pretty sure buffers here refer to something different from emacs buffers as they’re completely unrelated to clipboards. Then from a quick scan of the plug-in mentioned it seems to mimic the clipboard ring emacs has had for many decades (always?).
Basically I have no idea what’s going on here.