root/dotfiles/screen/kana-screenrc

Revision 521, 2.7 kB (checked in by kana, 12 months ago)

dotfiles/screen/kana-screenrc:
* hardstatus string: Rewrite.
* shelltitle: New.
* bind .: New, to reload ~/.screenrc.
* bind O C/L/R: New, shortcuts for frequently used cases.
* DEFAULT WINDOWS: Remove,

to avoid creating new window whenever ~/.screenrc is reloaded.

  • Property svn:keywords set to Id
Line 
1# $Id$
2# MISC. SETTINGS  {{{1
3# ====================
4
5escape ^Aa
6term xterm-256color
7defbce on
8defscrollback 1000
9defencoding utf-8
10encoding utf-8 utf-8
11altscreen on
12
13autodetach on  # detach on hangup
14pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
15
16hardcopydir "$HOME/.screen/"
17nethack on
18startup_message off
19vbell off
20vbell_msg "Bell in %t"
21
22caption splitonly '%?%F@%: %?%3n %t%? [%f]%?'
23hardstatus on
24hardstatus alwayslastline
25hardstatus string '%{= Kw}%-w%{+bu}%n %t%{-}%+w%-18= | %D %m-%d %02c'
26shelltitle '$ |shell:'
27
28
29
30
31# KEY BINDINGS  {{{1
32# ==================
33
34# UNUSED DEFAULT KEY BINDINGS {{{2
35# --------------------------------
36
37bind b  # break
38bind ^B # break
39bind B  # pow_break
40bind c  # screen
41bind ^C # screen
42bind d  # detach
43bind ^D # detach
44bind D  # pow_detach
45bind f  # flow
46bind ^F # flow
47bind h  # hardcopy
48bind H  # log
49bind k  # kill
50bind ^K # kill
51bind L  # login
52bind s  # xoff
53bind ^S # xoff
54bind q  # xon
55bind ^Q # xon
56bind ^V # digraph
57bind W  # width
58bind x  # lockscreen
59bind ^X # lockscreen
60bind X  # remove
61bind .  # dumptermcap
62bind ^\ # quit
63bind >  # writebuf
64bind <  # readbuf
65bind =  # removebuf
66
67
68# MISC. {{{2
69# ----------
70
71bind ^H help
72
73bind p paste .
74bind ^P paste .
75bind T title
76bind V version
77
78bind ^D eval 'echo -p "\^\^D%080="' 'command -c detach'
79bind -c detach d detach
80bind -c detach ^D detach
81bind -c detach D pow_detach
82
83bind . eval 'source $HOME/.screenrc' 'echo "~/.screenrc has been reloaded."'
84
85bind ^O eval 'echo -p "Shell? -- Cygwin / Linux / Root"' 'command -c shell'
86bind -c shell ^C screen -t 'cygwin' ssh cygwin
87bind -c shell ^L screen -t 'linux' ssh www
88bind -c shell ^R screen -t 'root' sudo -i
89
90
91# WINDOW {{{2
92# -----------
93#
94# Like Vim's key bindings for windows.
95
96bind n screen
97bind ^N screen
98bind c kill
99bind ^C kill
100
101bind j next
102bind ^J next
103bind k prev
104bind ^K prev
105
106
107# REGION {{{2
108# -----------
109#
110# Like Vim's key bindings for windows.
111# Use the prefix ^R instead of ^W.
112
113bind ^R eval 'echo -p "\^\^R%080="' 'command -c region'
114bind -c region n split
115bind -c region ^N split
116bind -c region s eval 'split' 'focus down' 'other'  # split the current window
117bind -c region ^S eval 'split' 'focus down' 'other'
118bind -c region c remove
119bind -c region ^C remove
120bind -c region o only
121bind -c region ^O only
122bind -c region j focus down
123bind -c region ^J focus down
124bind -c region k focus up
125bind -c region ^K focus up
126bind -c region t focus top
127bind -c region ^T focus top
128bind -c region b focus bottom
129bind -c region ^B focus bottom
130bind -c region r focus down
131bind -c region ^R focus down
132bind -c region R focus up
133bind -c region = resize =
134bind -c region + resize +1
135bind -c region - resize -1
136bind -c region _ resize max
137
138
139
140
141# __END__  #{{{1
142# vim: filetype=screen foldmethod=marker
Note: See TracBrowser for help on using the browser.