From 49b59006308b442a2eace0eec26dd5c7af7daa1e Mon Sep 17 00:00:00 2001 From: Colin P. McCabe Date: Tue, 27 Aug 2024 13:50:00 -0700 Subject: [PATCH] .tmux.conf: add vim-style movement keys --- .tmux.conf | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index efa953b..391bdf8 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,5 +1,5 @@ # turn off esc-wait so that vi works correctly -set-option -sg escape-time 0 +set-option -sg escape-time 0 # use control-K as the prefix set -g prefix C-k @@ -32,3 +32,18 @@ set-option -g status-interval 5 set-option -g visual-activity off set-window-option -g monitor-activity off +# moving between panes with vim movement +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# moving between windows with vim movement +bind -r C-h select-window -t :- +bind -r C-l select-window -t :+ + +# resize panes with vim movement keys +bind -r H resize-pane -L 5 +bind -r J resize-pane -D 5 +bind -r K resize-pane -U 5 +bind -r L resize-pane -R 5 -- 1.6.6.rc1.39.g9a42