4 ms·
> A bigger UX problem (on Linux) imo is the multitude of clipboards, we have x11, vim... Those can be synchronized or not, they manifest different behaviors...
by yjftsjthsd-h 1y ago
> A bigger UX problem (on Linux) imo is the multitude of clipboards, we have x11, vim... Those can be synchronized or not, they manifest different behaviors...
I would probably like vim's + register to always sync with the X/Wayland clipboard where possible², but it is perhaps worth pointing out that vim has (at least?¹) 28 "clipboard" slots (+, *, a-z) and this is a feature not a bug. Having accepted that, I would likewise point out that X having a clipboard and selection buffer is an intentional feature. I'd support universally supporting one single shared clipboard that everything uses properly by default, but I wouldn't want to limit the other options to do it.
¹Edit: Nope, much more than that: https://learnvim.irian.to/basics/registers https://learnvim.irian.to/basics/registers
²Edit: Oh, yes, I do agree that I would be in favor of making that the default register as well so that ex. just `yy`/`p` used it.
- koiueo 1y ago> supporting one single shared clipboard that everything uses properly by defaul Agree. I got to realize how convenient it is to have one shared clipboard by default after I tried (doom)emacs: behaves like vim, has registers like vim, but default register uses the clipboard. I can still use all the registers as much as I like, but the default one is global and can be shared between apps. I now configure my vim like this. I still miss this, however, when working occasionally without a graphical session. Perhaps there's a solution, but I haven't yet bothered to look for it.
- NDxTreme 1y agoIt should be included in the :OS section, the tty defaults. From the docs. "This module configures Emacs for use in the terminal, by providing: System clipboard integration (through an external clipboard program or OSC-52 escape codes in supported terminals). Cursor-shape changing across evil states (requires a terminal that supports it). Mouse support in the terminal."
- xigoi 1y ago> I do agree that I would be in favor of making that the default register as well so that ex. just `yy`/`p` used it. set clipboard=unnamedplus I deliberately do not use this beause I don’t want random Vim edits to clobber my system clipboard.
- opan 1y agoAgreed. I am completely okay with the separate clipboards. Allows stuff like cc or dd followed by pasting in from the system clipboard (different text) without having to go re-copy something because you just overwrote it. I used spacemacs for a while and I absolutely hated the clipboard syncing.
- yjftsjthsd-h 1y agoWell, vim has an absurdly large number of registers. You could just do ex. "add"+p (that is, "delete this line into register a, then paste from +")