Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use C-s as tmux prefix

C-a allow use to trigger tmux prefix more easily than C-b, at the cost
of overriding the readline beginning of line. This change remaps it to
C-s, which has the same effect without that drawback.

Remove last-pane bindings.
Map prefixes to underlying behavior

Quoting Chris Toomey:

> I'm wondering if we might want to take a different approach with these
> keys. last-pane is already bound to ; by default which is comfortably
> on the home row, and if using vim-tmux-navigator also bound to
> (unprefixed) C-\.
commit 87e72a90989a5472c19daffa6055f2feb6acb909 1 parent 6649163
@tute tute authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 tmux.conf
View
10 tmux.conf
@@ -10,9 +10,7 @@ bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
-# act like GNU screen
-unbind C-b
-set -g prefix C-a
+set -g prefix2 C-s
# start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
@@ -32,8 +30,10 @@ set -g status-right ''
# increase scrollback lines
set -g history-limit 10000
-# switch to last pane
-bind-key C-a last-pane
+# prefix -> back-one-character
+bind-key C-b send-prefix
+# prefix-2 -> forward-incremental-history-search
+bind-key C-s send-prefix -2
# Local config
if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local'
Please sign in to comment.
Something went wrong with that request. Please try again.