commit 867dbf008a17f87f688373247da1cadfd1777b02
parent ef5bcea7f94f6151a9a909284b248139ada6006d
Author: Chris Bracken <chris@bracken.jp>
Date: Tue, 25 Jan 2022 09:47:02 -0800
tmux: bind pane navigation to hjkl
Remaps hjkl to left, up, down, right like in vi.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/.tmux.conf b/.tmux.conf
@@ -3,6 +3,10 @@
# keybindings
set-window-option -g mode-keys vi
set-option -g status-keys vi
+bind-key h select-pane -L
+bind-key j select-pane -D
+bind-key k select-pane -U
+bind-key l select-pane -R
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
bind-key -T copy-mode-vi 'r' send-keys -X rectangle-toggle