Added vim bindings to tmux configuration

This commit is contained in:
Dennis Potter 2019-09-29 16:22:54 +02:00
parent 156444d1ee
commit 4189523bb5
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@ set -g prefix C-a
unbind C-b
bind C-a send-prefix
# VIM mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf