From c1b6141acfc251ead37712a9c5ceefdafc3a0e09 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 4 Jan 2022 23:16:27 -0500 Subject: [PATCH] tmux: Add h/j/k/l split nav and |/- split keys Old habits die hard... and the "open in current dir" is super useful / hard to live without! --- .tmux.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 92e340e..3898a47 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -5,3 +5,13 @@ bind-key C-a send-prefix # Less delay on pressing escape (for vim) set-option -sg escape-time 10 + +# Navigate splits based on vi-keys +bind-key C-h select-pane -L +bind-key C-j select-pane -D +bind-key C-k select-pane -U +bind-key C-l select-pane -R + +# Use | and - for more intuitive splits (in the same location!) +bind-key | split-window -c "#{pane_current_path}" -h +bind-key - split-window -c "#{pane_current_path}" -v -- libgit2 1.1.1