From 8434ea4c9e0cdbe0c8fce326f1bd01554f89a051 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 16 Aug 2014 14:55:18 -0500 Subject: [PATCH] .tmux.conf: vim style window splitting --- .tmux.conf | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 553bd17..0f101bf 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -41,20 +41,17 @@ bind-key Escape copy-mode unbind-key Space # vim style movement -setw -g mode-keys vi +set-window-option -g mode-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 -r C-j resize-pane -D 1 -bind-key -r C-k resize-pane -U 1 -bind-key -r C-h resize-pane -L 1 -bind-key -r C-l resize-pane -R 1 +bind-key J swap-pane -D +bind-key K swap-pane -U -# intuitive window splitting -bind-key '|' split-window -h -bind-key '\' split-window -h -bind-key '-' split-window -v +# vim style window splitting +bind-key 's' split-window -v +bind-key 'v' split-window -h # Shift+0-9 to select screens 10-19 bind-key ')' select-window -t :10 -- 2.47.1