It took me longer than I’d like to admit until I figured this out, so I thought I’d share.
I know you can use shift+mouse
, however that doesn’t work in the vim terminal.
set -g mouse on
# set -s copy-command "xsel -s" # X11
set -s copy-command "wl-copy -p"
set -s set-clipboard on
#bind-key p run "xclip -out -selection secondary | tmux load-buffer - ; tmux paste-buffer" # X11
bind-key p run "wl-paste -n | tmux load-buffer - ; tmux paste-buffer"