From 0c03e5a5de0d087c9bc9ab07adf08c4b715ee2e8 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Wed, 21 Aug 2019 10:51:08 +0800 Subject: [PATCH] Update tmux config > 2.4 --- tmux/.tmux.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 65af0b1..125a2d5 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -12,7 +12,7 @@ set -s focus-events on # set -g prefix2 C-a # bind C-a send-prefix -2 -set -q -g status-utf8 on +#set -q -g status-utf8 on setw -q -g utf8 on # edit configuration @@ -87,9 +87,9 @@ bind Down last-window \; swap-pane -s tmp. \; kill-window -t tmp # in version 2.3 and below https://github.com/tmux/tmux/commit/76d6d3641f271be1756e41494960d96714e7ee58 setw -g mode-keys vi -bind-key -t vi-copy 'v' begin-selection -bind-key -t vi-copy 'C-v' rectangle-toggle -bind-key -t vi-copy 'y' copy-selection +bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode. +bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode. +bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode. # https://superuser.com/a/693990/298782 # Smart pane switching with awareness of Vim splits.