summaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf21
1 files changed, 13 insertions, 8 deletions
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