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.