I am using TMUX 2.3 just recently copying stopped working.

Here is the relevant section that lets me copy stuff to the clipboard:

bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy y copy-pipe "xclip -sel clip -i"

I made sure xclip is installed.

One thing I found out is this git commit in the tmux repository: Fundamental change to how copy mode key bindings work (76d6d3)

So I know that the keybindings changed but I cannot make out how to rewrite those two lines so they are working.

I am aware of the following questions though I believe they do not solve the problem I have.

1 Answer 1


I also stumbled upon this issue. After some googling I found the solution on a japanese blog here.

Instead of doing bind-key -t vi-copy y copy-pipe "xclip -sel clip -i"
Do something like this:

bind-key -T copy-mode-vi y send -X copy-pipe "xclip -sel clip -i"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .