TIL if I just rebuild vim-huge in nix, I'll get vim with clipboard support enabled. Upstream defaults ftw. Every distro ships vim without clipboard enabled, nixos included. But this is nixos, so I can just set it in configuration.nix and forget it.

Try it out if you want:

```

nix-shell -p 'vim_configurable.overrideAttrs (oldAttrs: { features = "huge"; })'

```

Boom. You can yank to the system primary clipboard using key chorn `"+y`

Supposedly you're supposed to be able have the normal yank chords do this to by setting `set clipboard+=unnamedplus`, but that didn't work in my environement for some reason. So I just did the reckless thing and remapped them directly:

```

" -- Buffers: yank to system primary clipboard. yay!

nnoremap y "+y

nnoremap yy "+yy

noremap y "+y

```

AT LAST. YES!

Reply to this note

Please Login to reply.

Discussion

chord*

my daily driver is the #golang editor micro, which has both internal clipboard, works with the X clipboard and the x-terminal (whatever one you use that is proper, I use VTE based), it has command keys like a real GUI and you can move your cursor with your mouse (that can be a bit weird at first when you are used to terminal editors not knowing where you click)

also, the biggest reason why i don't like these trad editors is that my keyboard layout is dvorak and half the important keys are on the other side of the keyboard and i have an ortholinear 75 key keyboard and it hasn't been practical to design the layout with those extra 3 keys wasted

most programmers don't touch type IME, so it's not a struggle for anyone who is used to putting out 80wpm the rest of the time

i can't comprehend how python and C++ programmers who can't touch type want to use an editor like VI?? must be pure torture waiting for your fingers to finally type out the same damn words 5 times on 5 separate files... y'all are mad