commit 5d988220eb8cead8bde65f5aa97e458a12dc12a1
parent 35804f1c3f9fb582574669e579b868b417957f06
Author: Chris Bracken <chris@bracken.jp>
Date: Tue, 8 Oct 2013 17:05:14 -0700
Use vim keys in tmux copy mode
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/.tmux.conf b/.tmux.conf
@@ -12,6 +12,11 @@ set-option -g status-utf8 on
# keybindings
set-window-option -g mode-keys vi
set-option -g status-keys vi
+unbind p
+bind p paste-buffer
+bind-key -t vi-copy 'v' begin-selection
+bind-key -t vi-copy 'y' copy-selection
+bind-key -t vi-copy 'r' rectangle-toggle
bind C-j next-window
bind C-k previous-window
bind C-c new-window