I also recently wrote some software to make the clipboard work the way I wanted.
https://github.com/hossbeast/meshboard
Distributed clipboard, mesh networking, xorg and Wayland integration. tmux and vim would also make sense, as OP has done, though I haven't gotten there yet.