From 4018d63b7dd3160f8446b13ae5f696116ad72d96 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Tue, 21 Apr 2015 22:20:59 -0400 Subject: better tmux movement --- tmux.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tmux.conf b/tmux.conf index 374790b..cbbb0af 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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 -- cgit v1.2.3