From 7b109147f6652c22bd7410619475e8b8b80f812f Mon Sep 17 00:00:00 2001 From: johannst <*> Date: Fri, 7 Oct 2016 18:07:10 +0200 Subject: added tmux keybindings for split movement --- .tmux.conf | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index 4446c03..93b92cc 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -4,28 +4,33 @@ set -g prefix C-x bind-key a send-prefix # for nested tmux sessions # re-source tmux.conf -bind-key -T prefix r source-file ~/.tmux.conf +bind-key r source-file ~/.tmux.conf # terminate tmux -bind-key -T prefix C-q confirm-before -p "kill-window #W? (y/n)" kill-window +bind-key C-q confirm-before -p "kill-window #W? (y/n)" kill-window # maximize current pane -bind-key -T prefix f resize-pane -Z # overwrites find window +bind-key f resize-pane -Z # overwrites find window # resolved key forwarding problem set-window-option -g xterm-keys on # had some struggle with vim key delay -#set -s escape-time 0 +set -s escape-time 0 # mouse support setw -g mouse on # default TERM set -g default-terminal "screen-256color" # split settings -bind-key -T prefix v split-window -h -bind-key -T prefix h split-window +bind-key s split-window -h +bind-key h split-window +# move between splits +bind-key k select-pane -U +bind-key j select-pane -D +bind-key h select-pane -L +bind-key l select-pane -R # Copy mode settings set-window-option -g mode-keys vi bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection -bind-key -T prefix C-v copy-mode -bind-key -T prefix p paste-buffer # overwrites previous window +bind-key C-v copy-mode +bind-key p paste-buffer # overwrites previous window ### Colour Settings -- cgit v1.2.3