Permalink
Browse files

tmuuuuux

  • Loading branch information...
1 parent e727f07 commit 6ca143f4e11d0690ecee98ed075ac1f07822ff7c @mattly committed Mar 20, 2012
Showing with 30 additions and 22 deletions.
  1. +30 −22 tmux.conf
View
@@ -1,17 +1,27 @@
-# use the C-a keystroke ala screen
-set -g prefix C-a
-unbind C-b
-bind C-a send-prefix
-
-# send keystrokes right away
-set -sg escape-time 0
-
-# window index starts at 1
-set -g base-index 1
-# set-window-option -g pane-base-index 1
+# fix the prefix
+# ==============
+ set -g prefix C-a
+ unbind C-b
+ bind C-a send-prefix
+
+# Don't even trip
+# ===============
+ set -sg escape-time 0
+ set -sg repeat-time 600
+
+# Counting starts with one, damnit,
+# it *is* the leftmost and all
+# =================================
+ set -g base-index 1
+ setw -g pane-base-index 1
# reload config
-bind r source-file ~/.tmux.conf \; display "Reloaded!"
+ bind r source-file ~/.tmux.conf \; display "Reloaded!"
+
+# Activity
+# ====================================
+ setw -g monitor-activity on
+ set -g visual-activity off
set -g xterm-keys on
@@ -21,25 +31,27 @@ set -g xterm-keys on
# Session Management and Navigation
# ======================================
- bind-key -r C-j switch-client -p
- bind-key -r C-k switch-client -n
+ bind-key -r C-s choose-session
# Window (tab) Management and Navigation
# ======================================
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
bind-key -r z last-window
+ bind c new-window \; command-prompt "rename-window '%%'"
+ bind C new-window
+ bind , command-prompt "rename=window '%%'"
# Pane Management and Navigation
# ================================
# splitting horizontally
unbind %
- bind | split-window -h
+ bind v split-window -h
bind -r up resize-pane -U 10
bind -r down resize-pane -D 10
# splitting vertically
unbind '"'
- bind - split-window -v
+ bind s split-window -v
bind -r left resize-pane -L 10
bind -r right resize-pane -R 10
# navigate like vim
@@ -91,14 +103,10 @@ set -g xterm-keys on
# =========
setw -g mode-keys vi
unbind [
- bind Escape copy-mode
+ bind Space copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
-
-# --- commands
-bind / command-prompt -p "man page: " "split-window 'exec man %%'"
-bind v command-prompt -p "vim: " "split-window 'exec vim %%'"
-bind s command-prompt -p "ssh: " "new-window -n %1 'ssh %1'"
+ bind -t vi-copy Escape cancel

0 comments on commit 6ca143f

Please sign in to comment.