.tmux/screen-keys.conf

changeset 402
cb0889a78173
equal deleted inserted replaced
401:037d31f52a75 402:cb0889a78173
1 # $Id: screen-keys.conf,v 1.7 2010-07-31 11:39:13 nicm Exp $
2 #
3 # By Nicholas Marriott. Public domain.
4 #
5 # This configuration file binds many of the common GNU screen key bindings to
6 # appropriate tmux key bindings. Note that for some key bindings there is no
7 # tmux analogue and also that this set omits binding some commands available in
8 # tmux but not in screen.
9 #
10 # Note this is only a selection of key bindings and they are in addition to the
11 # normal tmux key bindings. This is intended as an example not as to be used
12 # as-is.
13
14 # Set the prefix to ^A.
15 unbind C-b
16 set -g prefix ^A
17 bind a send-prefix
18
19 # Bind appropriate commands similar to screen.
20 # lockscreen ^X x
21 unbind ^X
22 bind ^X lock-server
23 unbind x
24 bind x lock-server
25
26 # screen ^C c
27 unbind ^C
28 bind ^C new-window
29 unbind c
30 bind c new-window
31
32 # detach ^D d
33 unbind ^D
34 bind ^D detach
35
36 # displays *
37 unbind *
38 bind * list-clients
39
40 # next ^@ ^N sp n
41 unbind ^@
42 bind ^@ next-window
43 unbind ^N
44 bind ^N next-window
45 unbind " "
46 bind " " next-window
47 unbind n
48 bind n next-window
49
50 # title A
51 unbind A
52 bind A command-prompt "rename-window %%"
53
54 # other ^A
55 unbind ^A
56 bind ^A last-window
57
58 # prev ^H ^P p ^?
59 unbind ^H
60 bind ^H previous-window
61 unbind ^P
62 bind ^P previous-window
63 unbind p
64 bind p previous-window
65 unbind BSpace
66 bind BSpace previous-window
67
68 # windows ^W w
69 unbind ^W
70 bind ^W list-windows
71 unbind w
72 bind w list-windows
73
74 # quit \
75 unbind '\'
76 bind '\' confirm-before "kill-server"
77
78 # kill K k
79 unbind K
80 bind K confirm-before "kill-window"
81 unbind k
82 bind k confirm-before "kill-window"
83
84 # redisplay ^L l
85 unbind ^L
86 bind ^L refresh-client
87
88 # split -v |
89 unbind |
90 bind | split-window
91
92 # :kB: focus up
93 unbind Tab
94 bind Tab select-pane -t:.+
95 unbind BTab
96 bind BTab select-pane -t:.-
97
98 # " windowlist -b
99 unbind '"'
100 bind '"' choose-window

mercurial