From 4189523bb5d36195573796a38c4a1071c71b7ef4 Mon Sep 17 00:00:00 2001 From: Dennis Date: Sun, 29 Sep 2019 16:22:54 +0200 Subject: [PATCH] Added vim bindings to tmux configuration --- dotfiles/tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index 9ecde4c..5638e50 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -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