From: Colin P. McCabe Date: Tue, 27 Aug 2024 20:50:00 +0000 (-0700) Subject: .tmux.conf: add vim-style movement keys X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49b59006308b442a2eace0eec26dd5c7af7daa1e;p=cmccabe-etc .tmux.conf: add vim-style movement keys --- 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