diff options
author | Matt Singleton <matt@xcolour.net> | 2015-04-21 22:20:59 -0400 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2015-04-21 22:20:59 -0400 |
commit | 4018d63b7dd3160f8446b13ae5f696116ad72d96 (patch) | |
tree | ff77a2a959ab9b685fd33d9af7fae0cb184f38ba | |
parent | 72856b47a63f12c84992a6db25f2c46d4735374a (diff) |
better tmux movement
-rw-r--r-- | tmux.conf | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -11,3 +11,36 @@ set -g status-left-bg green set -g status-left-fg white set -g set-titles on set -g default-terminal "screen-256color" + +# reversed to match vim split names +bind-key v select-layout even-horizontal +bind-key h select-layout even-vertical + +# vim-style resize +bind -r H resize-pane -L 2 +bind -r J resize-pane -D 2 +bind -r K resize-pane -U 2 +bind -r L resize-pane -R 2 + +# vim-style move +bind -r h select-pane -L +bind -r j select-pane -D +bind -r k select-pane -U +bind -r l select-pane -R + +# bound arrow keys are annoying +unbind Up +unbind Down +unbind Left +unbind Right +unbind M-Up +unbind M-Down +unbind M-Left +unbind M-Right +unbind C-Up +unbind C-Down +unbind C-Left +unbind C-Right + +# reasonable history buffer +set -g history-limit 10000 |