commit c1b6141acfc251ead37712a9c5ceefdafc3a0e09 (patch) parent a0abdc5c713f62511d67280a197f4719bf670082 Author: Alex Karle <alex@alexkarle.com> Date: Tue, 4 Jan 2022 23:16:27 -0500 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! Diffstat:
M | .tmux.conf | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git 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