From 6ac99e4e8976a7765e7ca159b712db0d634c8202 Mon Sep 17 00:00:00 2001 From: DustVoice Date: Sun, 9 Aug 2020 21:23:00 +0200 Subject: [PATCH] Finalize tmux config --- .config/nvim | 2 +- .tmux.conf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/nvim b/.config/nvim index 925358f..3974ed3 160000 --- a/.config/nvim +++ b/.config/nvim @@ -1 +1 @@ -Subproject commit 925358fb63f6f652b966df6b20c8d56e6140d3b8 +Subproject commit 3974ed3386fc2ff51caacf9e8b7318bb6f77a79e diff --git a/.tmux.conf b/.tmux.conf index 4b36428..b7e2200 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -5,5 +5,11 @@ set-option -g allow-rename off bind r source-file ~/.tmux.conf +set-option escape-time 0 + bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel +bind-key -T copy-mode-vi Escape send -X cancel + +bind-key -n C-p run "xclip -o | tmux load-buffer -" +bind-key -n C-y run "tmux show-buffer | xclip -i -sel p -f | xclip -i -sel c"