From 52963bf2be026f2cb3070c4dafd0ba82ee9cb725 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 22 May 2023 15:11:54 +0200 Subject: [PATCH] tmux: Mimic vim's `Y` in copy-mode-vi --- .config/tmux/tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 907cb81..069158c 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -99,6 +99,8 @@ bind -T copy-mode-vi y \ send -X copy-pipe } } +bind -T copy-mode-vi Y \ + if -F "#{selection_present}" { send -X copy-pipe-line } { send -X copy-pipe-end-of-line } # Clear selection or cancel copy-mode when nothing is selected bind -T copy-mode-vi Escape \