diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index b187729..1fdb17b 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -139,8 +139,13 @@ bind -T copy-mode-vi y \ send -X copy-pipe } { command-prompt -k -p (operator-pending) { - send -X begin-selection - send "%%" + # do line-wise yank on yy + if -F "#{==:%%,y}" { + send -X select-line + } { + send -X begin-selection + send "%%" + } send -X copy-pipe } }