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