From bb9e5750563ccd705c530beab2d53dbc27186552 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 10 Oct 2020 17:44:22 +0530 Subject: [PATCH] tmux: Add vim bindings for copying into tmux buffer --- tmux/.tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index e498fe2..575bd6a 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -78,6 +78,11 @@ bind 7 select-pane -t 7 bind 8 select-pane -t 8 bind 9 select-pane -t 9 +bind P paste-buffer +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-selection +bind-key -T copy-mode-vi r send-keys -X rectangle-toggle + # set default terminal mode to 256 colors # set -g default-terminal "screen-256color" # set default terminal mode to 256 colors