From 84a69f863817ce49fc7811285c2cd90bc7f6529e Mon Sep 17 00:00:00 2001 From: Hung Date: Sat, 3 Jun 2023 20:23:42 -0700 Subject: [PATCH] feat: vi-copy mode now consistent with vim: use 'v' for select mode and 'y' to copy --- native_configs/tmux/tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/native_configs/tmux/tmux.conf b/native_configs/tmux/tmux.conf index d494893..0af00fb 100644 --- a/native_configs/tmux/tmux.conf +++ b/native_configs/tmux/tmux.conf @@ -21,6 +21,11 @@ set-option -g renumber-windows on # set -g status-left " " # Keybinds +# Enter copy mode with 'v' in vi mode +bind-key -Tcopy-mode-vi v send-keys -X begin-selection + +# Copy selection with 'y' in vi mode +bind-key -Tcopy-mode-vi y send-keys -X copy-selection-and-cancel set-window-option -g mode-keys vi # # Log