From 9b389c736c63f7a8a286ee5bc41bb04ecc4fd232 Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Mon, 4 Dec 2017 16:22:50 -0500 Subject: [PATCH] Vim style pane switching, window renumbering --- tmux.conf | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tmux.conf b/tmux.conf index 8ef9247..cdd009e 100644 --- a/tmux.conf +++ b/tmux.conf @@ -17,11 +17,18 @@ set-option -ga terminal-overrides ",xterm-256color:Tc" # Default terminal is 256 colors set -g default-terminal "screen-256color" -# switch panes using Alt-arrow without prefix -bind -n M-Left select-pane -L -bind -n M-Right select-pane -R -bind -n M-Up select-pane -U -bind -n M-Down select-pane -D +# switch panes using vim keys +bind C-h select-pane -L +bind C-j select-pane -D +bind C-k select-pane -U +bind C-l select-pane -R # set mouse on for scrolling set -g mouse on + +# set window and pane numbering to start at 1 +set -g base-index 1 +set -g pane-base-index 1 + +# set windows to renumber themselves when closed +set -g renumber-windows on -- libgit2 0.28.4