From db24cbc8558e76fc201db84cd4b572e36bb13dca Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Fri, 11 Nov 2016 00:53:59 +0100 Subject: [PATCH] tmux.conf: add basic config + vim keybindings --- tmux.conf | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index dfa620d..78574f0 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,3 +1,45 @@ -set -g mouse on - +# standard set -g default-terminal "screen-256color" +set -g history-limit 10000 + +# index-stuff +set -g base-index 1 +setw -g pane-base-index 1 +bind 0 select-window -t :10 +set -g renumber-windows on + +# window-titles +setw -g automatic-rename on +setw -g monitor-activity on + +# controls +#set -g mouse on #disabled to allow normal control inside of panes +set -sg escape-time 0 +setw -g status-keys vi +setw -g mode-keys vi + +# pane resizing +bind -r -T root C-h resize-pane -L +bind -r -T root C-j resize-pane -D +bind -r -T root C-k resize-pane -U +bind -r -T root C-l resize-pane -R + +bind -r -T root M-h resize-pane -L 5 +bind -r -T root M-j resize-pane -D 5 +bind -r -T root M-k resize-pane -U 5 +bind -r -T root M-l resize-pane -R 5 + +# pane selection +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +bind -n M-h select-pane -L +bind -n M-j select-pane -L +bind -n M-k select-pane -U +bind -n M-l select-pane -R + +# window selection +bind -n S-Left previous-window +bind -n S-Right next-window