Permalink
Browse files

use Control-B as prefix in Screen like in Tmux

  • Loading branch information...
1 parent 6eb0461 commit 7b74bfcaee9eb965e9c752728a398401d9af1817 @sunaku committed Nov 22, 2011
Showing with 13 additions and 1 deletion.
  1. +1 −1 .screenrc
  2. +12 −0 .tmux.conf
View
@@ -46,7 +46,7 @@ defutf8 on
#-----------------------------------------------------------------------------
# prefix for all screen shortcuts
-escape ^oo
+escape ^bb
# switch between tabs with Control-Left/Right
bindkey "^[[1;5D" prev
View
@@ -0,0 +1,12 @@
+# https://wiki.archlinux.org/index.php/Tmux
+
+# correct 256color handling and Ctrl/Alt key combos in Vim
+set -g default-terminal "xterm-256color"
+set -g xterm-keys on
+
+# urxvt tab like window switching (-n: no prior escape seq)
+bind -n S-down new-window
+bind -n S-left prev
+bind -n S-right next
+bind -n C-left swap-window -t -1
+bind -n C-right swap-window -t +1

0 comments on commit 7b74bfc

Please sign in to comment.