From b05eb8b5d703a9cdea0d4dd61462d936b33b9e4c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 1 Apr 2017 15:43:49 +0300 Subject: [PATCH] .tmux.conf: vim-like navigation --- .tmux.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 0984038..ae1849a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -59,6 +59,17 @@ set-option -g history-limit 1000 # R to reload config without restart bind-key R source-file ~/.tmux.conf \; display "Reloaded!" +# vim-like navigation +unbind-key h; bind-key h select-pane -L +unbind-key j; bind-key j select-pane -D +unbind-key k; bind-key k select-pane -U +unbind-key l; bind-key l select-pane -R + +bind H resize-pane -L 10 +bind J resize-pane -D 10 +bind K resize-pane -U 10 +bind L resize-pane -R 10 + # Set the command prefix to match GNU screen (CTRL+a) # set-option -g prefix C-a # -- 2.39.5