From: Iain Patterson Date: Wed, 12 Jan 2011 11:14:25 +0000 (+0000) Subject: Swap round some tmux bindings. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=d6ccc8abb1b587d6c9e2b4f416c1236cc61e7c3c;p=profile.git Swap round some tmux bindings. 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. --- diff --git a/.tmux.conf b/.tmux.conf index f46cae1..5d9d8b7 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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 -# 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. -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.