From 26b0fac7bad880b11fad8d8abc3ea772465d6f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Mon, 22 May 2017 13:20:54 +0200 Subject: [PATCH] tmux: resize panes with C-M-{hjkl} --- files/.tmux.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/files/.tmux.conf b/files/.tmux.conf index 99903ff..a9e1e7a 100644 --- a/files/.tmux.conf +++ b/files/.tmux.conf @@ -1,6 +1,9 @@ # Set $TERM env set -g default-terminal "screen-256color" +# No escape delay, so that one can still use vim +set -sg escape-time 0 + # Set prefix to ^A unbind C-b set -g prefix C-a @@ -16,6 +19,13 @@ bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq v bind -n M-j select-window -p bind -n M-k select-window -n +# Resizing +## Resize panes through C-M-{hjkl} +bind -n C-M-h resize-pane -L +bind -n C-M-j resize-pane -D +bind -n C-M-k resize-pane -U +bind -n C-M-l resize-pane -R + # Splitting unbind % unbind '"'