From 672e5720144c3ace97515ddc34b98e628e7834df Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 25 Jan 2019 09:50:37 -0600 Subject: [PATCH] tmux copy-paste changes --- tmux/.tmux.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index c6fa126..9f3f965 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -44,13 +44,19 @@ bind -r J resize-pane -D 5 bind -r K resize-pane -U 5 bind -r L resize-pane -R 5 +#sorta-kinda vim keys for copy and paste + 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 y send-keys -X copy-pipe "xclip -sel clip -i" + bind-key -T copy-mode-vi r send-keys -X rectangle-toggle + #moving panes between windows. bind-key b command-prompt -p "bring pane from:" "join-pane -s '%%'" bind-key s command-prompt -p "sent pane to:" "join-pane -t '%%'" #reload conf with r -bind r source-file ~/tmux.conf +bind r source-file ~/.tmux.conf #fix annoying escape behavior set -sg escape-time 0