From 09fdaebbe757d13167195186dc91760dbf352db0 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 22 Jun 2025 20:59:25 +0100 Subject: [PATCH] Add more vim like copy-mode bindings --- tmux.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index 4d4f1a4..20dde85 100644 --- a/tmux.conf +++ b/tmux.conf @@ -91,7 +91,14 @@ unbind -T copy-mode-vi C-j # Enter copy mode with C-U bind C-u copy-mode -u # Begin selection in copy mode with v not Space -bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi v send -X begin-selection +bind -T copy-mode-vi V send -X select-line +# FIXME: C-v mapping is not limited to only copy mode so it never gets through +# to zsh/nvim etc which is not acceptable. +# bind -T copy-mode-vi C-v send -X rectangle-toggle +# Exit copy mode with i/a +bind -T copy-mode-vi 'i' send -X cancel +bind -T copy-mode-vi 'a' send -X cancel # Search without entering copy-mode first bind '/' 'copy-mode;send-keys /' bind '?' 'copy-mode;send-keys ?'