How to make vi-mode bindings in terminal copy to clipboard
1 answer
+1
−0
I don't know if this is universal or specific to my setup (zsh, GNOME Terminal, Xorg), but using "+yy
(double quote, plus, Y, Y) instead of just yy
works for me.
Note this is the same command used within Vim itself to copy to the main clipboard instead of a Vim-internal register, so it makes sense for this to work in ZSH as well.
2 comment threads