Swap round some tmux bindings.
authorIain Patterson <me@iain.cx>
Wed, 12 Jan 2011 11:14:25 +0000 (11:14 +0000)
committerIain Patterson <me@iain.cx>
Thu, 13 Jan 2011 11:39:22 +0000 (11:39 +0000)
Use h and l to switch left and right in panes; H and L to switch left
and right in windows.
Use J and K to switch up and down not top and bottom which only worked
when there was one pane on top or bottom, ie they broke if there were
two vertically-split panes on top.

These changes diverge from screen compatibility somewhat but
it was getting annoying to have to swap between using shift or not
when changing panes horizontally or vertically.

Also use 6 as another way to switch to the last pane and ^ to switch
to the last window, kinda like Vim.

.tmux.conf

index f46cae1..5d9d8b7 100644 (file)
@@ -39,17 +39,20 @@ bind j select-pane -D
 bind C-j select-pane -D
 bind k select-pane -U
 bind C-k select-pane -U
 bind C-j select-pane -D
 bind k select-pane -U
 bind C-k select-pane -U
-# Previous and next window kinda like Vim.
-bind h previous-window
-bind C-h previous-window
-bind l next-window
-bind C-l next-window
-# And for panes.
-bind H select-pane -L
-bind L select-pane -R
+# Previous and next panes kinda like Vim.
+bind h select-pane -L
+bind C-h select-pane -L
+bind l select-pane -R
+bind C-l select-pane -R
+# And for windows.
+bind H previous-window
+bind L next-window
+# Last window like Vim.
+bind ^ last-window
+bind C-^ last-pane
 # Top and bottom.
 # Top and bottom.
-bind J select-pane -t bottom
-bind K select-pane -t top
+bind J select-pane -D
+bind K select-pane -U
 # Swap panes.
 bind w swap-pane
 # Show panes.
 # Swap panes.
 bind w swap-pane
 # Show panes.