by em-bee · 2w ago · 0 comments
tmux does not have that feature built in. you can make tmux write to the clipboard by providing an external command: https://unix.stackexchange.com/questions/686209/tmux-wayland...
telling the terminal to write to the clipboard on the other hand is built in: https://github.com/tmux/tmux/wiki/Clipboard
for vim writing to the clipboard through the terminal is not built in, but it can be programmed to do so with a plugin: https://github.com/ojroques/vim-oscyank
interestingly that page has a list of terminals that support this feature, though there is a better list here: https://can-i-use-terminal.github.io/features/osc52copy.html
so yes, there is a distinction. tmux can not write directly to the clipboard. it either needs an external command or a terminal that supports that. vim can, but only if it has access to the display, otherwise an external tool that writes to the clipboard or a plugin that can tell the terminal to do so is needed. neovim bundles the necessary support to talk to the terminal, it may just need to be configured.