mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Example configuration with some screen bindings.
This commit is contained in:
parent
e78b7c8154
commit
24d04208c7
192
examples/screen-keys.conf
Normal file
192
examples/screen-keys.conf
Normal file
@ -0,0 +1,192 @@
|
||||
# $Id: screen-keys.conf,v 1.1 2009-01-16 18:24:45 nicm Exp $
|
||||
#
|
||||
# This configuration file binds many of the common GNU screen key bindings to
|
||||
# appropriate tmux key bindings. Note that for some key bindings there is no
|
||||
# tmux analogue and also that this set omits binding some commands available in
|
||||
# tmux but not in screen.
|
||||
|
||||
### Unbind most existing tmux key bindings.
|
||||
unbind a
|
||||
unbind b
|
||||
unbind c
|
||||
unbind d
|
||||
unbind e
|
||||
unbind f
|
||||
unbind g
|
||||
unbind h
|
||||
unbind i
|
||||
unbind j
|
||||
unbind k
|
||||
unbind l
|
||||
unbind m
|
||||
unbind n
|
||||
unbind o
|
||||
unbind p
|
||||
unbind q
|
||||
unbind r
|
||||
unbind s
|
||||
unbind t
|
||||
unbind u
|
||||
unbind v
|
||||
unbind w
|
||||
unbind y
|
||||
unbind z
|
||||
|
||||
### Set the prefix to ^A.
|
||||
set -g prefix ^A
|
||||
|
||||
### Bind appropriate commands similar to screen.
|
||||
#removebuf =
|
||||
|
||||
#clear C
|
||||
|
||||
#lockscreen ^X x
|
||||
bind ^X lock-server
|
||||
bind x lock-server
|
||||
|
||||
#reset Z
|
||||
|
||||
#colon :
|
||||
bind : command-prompt
|
||||
|
||||
#log H
|
||||
|
||||
# screen ^C c
|
||||
bind ^C new-window
|
||||
bind c new-window
|
||||
|
||||
# copy ^[ [
|
||||
bind ^[ copy-mode
|
||||
bind [ copy-mode
|
||||
|
||||
# login L
|
||||
|
||||
# select '
|
||||
bind "'" select-prompt
|
||||
|
||||
# detach ^D d
|
||||
bind ^D detach
|
||||
|
||||
# meta a
|
||||
bind a send-prefix
|
||||
|
||||
# silence _
|
||||
|
||||
# digraph ^V
|
||||
|
||||
# monitor M
|
||||
|
||||
# split S
|
||||
|
||||
# displays *
|
||||
bind * list-clients
|
||||
|
||||
# next ^@ ^N sp n
|
||||
bind ^@ next-window
|
||||
bind ^N next-window
|
||||
bind " " next-window
|
||||
bind n next-window
|
||||
|
||||
# suspend ^Z z
|
||||
|
||||
# dumptermcap .
|
||||
|
||||
# number N
|
||||
|
||||
# time ^T t
|
||||
|
||||
# fit F
|
||||
|
||||
# only Q
|
||||
|
||||
# title A
|
||||
bind A command-prompt "rename-window %%"
|
||||
|
||||
# flow ^F f
|
||||
|
||||
# other ^A
|
||||
bind ^A last-window
|
||||
|
||||
# vbell ^G
|
||||
|
||||
# focus ^I
|
||||
|
||||
# pow_break B
|
||||
|
||||
# version v
|
||||
bind v server-info
|
||||
|
||||
# hardcopy h
|
||||
|
||||
# pow_detach D
|
||||
|
||||
# width W
|
||||
|
||||
# help ?
|
||||
bind ? list-keys
|
||||
|
||||
# prev ^H ^P p ^?
|
||||
bind ^H previous-window
|
||||
bind ^P previous-window
|
||||
bind p previous-window
|
||||
#XXX bind ^? previous-window
|
||||
|
||||
# windows ^W w
|
||||
bind ^W list-windows
|
||||
bind w list-windows
|
||||
|
||||
# history { }
|
||||
|
||||
# quit \
|
||||
bind \ kill-server
|
||||
|
||||
# wrap ^R r
|
||||
|
||||
# info i
|
||||
|
||||
# readbuf <
|
||||
|
||||
# writebuf >
|
||||
|
||||
# kill K k
|
||||
bind K kill-window
|
||||
bind k kill-window
|
||||
|
||||
# redisplay ^L l
|
||||
bind ^L refresh-client
|
||||
bind l refresh-client
|
||||
|
||||
# xoff ^S s
|
||||
|
||||
# lastmsg ^M m
|
||||
|
||||
# remove X
|
||||
|
||||
# xon ^Q q
|
||||
|
||||
# select -
|
||||
|
||||
# select 0
|
||||
# select 1
|
||||
# select 2
|
||||
# select 3
|
||||
# select 4
|
||||
# select 5
|
||||
# select 6
|
||||
# select 7
|
||||
# select 8
|
||||
# select 9
|
||||
|
||||
# paste ] ^]
|
||||
bind ] paste-buffer
|
||||
bind ^] paste-buffer
|
||||
|
||||
# split -v |
|
||||
bind | split-window
|
||||
|
||||
# :kB: focus up
|
||||
bind Tab down-pane
|
||||
bind BTab up-pane
|
||||
|
||||
# " windowlist -b
|
||||
bind '"' choose-window
|
Loading…
Reference in New Issue
Block a user