From e685fda2301cc5ed2c9346ba36e02e4386ac2199 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sun, 25 Feb 2018 11:41:27 +0800 Subject: [PATCH] Using vi in tmux selection mode Signed-off-by: Ein Verne --- tmux/.tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index e08d4db..201a659 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -68,8 +68,12 @@ bind _ split-window -v -c "#{pane_current_path}" unbind '"' unbind % +# 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 +# https://superuser.com/a/693990/298782 # Smart pane switching with awareness of Vim splits. # See: https://github.com/christoomey/vim-tmux-navigator