tmux: my god, its full of mappings
author |
Steve Losh <steve@stevelosh.com> |
date |
Tue, 14 Dec 2010 11:51:39 -0500 |
parents |
9e7096459f94
|
children |
cae75a813ef9
1e291f276d21
|
branches/tags |
(none) |
files |
.tmux.conf |
Changes
--- a/.tmux.conf Mon Dec 13 11:42:34 2010 -0500
+++ b/.tmux.conf Tue Dec 14 11:51:39 2010 -0500
@@ -1,13 +1,17 @@
-# prefix = C-j
-set-option -g prefix C-j
-bind C-j send-prefix
+# prefix = C-f
+set-option -g prefix C-f
+bind C-f send-prefix
# vim
setw -g mode-keys vi
-
-# esc to copy
unbind [
-bind Escape copy-mode
+unbind ]
+unbind -t vi-copy Space
+unbind -t vi-copy Enter
+bind -n Escape copy-mode
+bind -t vi-copy v begin-selection
+bind -t vi-copy y copy-selection
+bind -n C-p paste-buffer -s \015
setw -g automatic-rename
@@ -32,26 +36,19 @@
# splitting panes
bind s split-window -v
-bind C-s split-window -v
bind v split-window -h
-bind C-v split-window -h
# moving between panes
-bind h select-pane -L
-bind C-h select-pane -L
-bind j select-pane -D
-bind C-j select-pane -D
-bind k select-pane -U
-bind C-k select-pane -U
-bind l select-pane -R
-bind C-l select-pane -R
+bind -n C-h select-pane -L
+bind -n C-j select-pane -D
+bind -n C-k select-pane -U
+bind -n C-l select-pane -R
# resizing panes
-bind Down resize-pane -D 10
-bind Up resize-pane -U 10
-bind Left resize-pane -L 10
-bind Right resize-pane -R 10
+bind -n S-Down resize-pane -D 10
+bind -n S-Up resize-pane -U 10
+bind -n S-Left resize-pane -L 10
+bind -n S-Right resize-pane -R 10
# resource
bind r source-file ~/.tmux.conf
-bind C-r source-file ~/.tmux.conf