# $Id$ # MISC. SETTINGS {{{1 # ==================== escape ^Aa term xterm-256color defbce on defscrollback 1000 defencoding utf-8 encoding utf-8 utf-8 altscreen on autodetach on # detach on hangup pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended." hardcopydir "$HOME/.screen/" nethack on startup_message off vbell off vbell_msg "Bell in %t" caption splitonly '%?%F@%: %?%3n %t%? [%f]%?' hardstatus on hardstatus alwayslastline hardstatus string '%{= Kw}%-w%{+bu}%n %t%{-}%+w%-18= | %D %m-%d %02c' shelltitle '$ |shell:' # KEY BINDINGS {{{1 # ================== # UNUSED DEFAULT KEY BINDINGS {{{2 # -------------------------------- bind b # break bind ^B # break bind B # pow_break bind c # screen bind ^C # screen bind d # detach bind ^D # detach bind D # pow_detach bind f # flow bind ^F # flow bind h # hardcopy bind H # log bind k # kill bind ^K # kill bind L # login bind s # xoff bind ^S # xoff bind q # xon bind ^Q # xon bind ^V # digraph bind W # width bind x # lockscreen bind ^X # lockscreen bind X # remove bind . # dumptermcap bind ^\ # quit bind > # writebuf bind < # readbuf bind = # removebuf # MISC. {{{2 # ---------- bind ^H help bind p paste . bind ^P paste . bind T title bind V version bind ^D eval 'echo -p "\^\^D%080="' 'command -c detach' bind -c detach d detach bind -c detach ^D detach bind -c detach D pow_detach bind . eval 'source $HOME/.screenrc' 'echo "~/.screenrc has been reloaded."' bind ^O eval 'echo -p "Shell? -- Cygwin / Linux / Root"' 'command -c shell' bind -c shell ^C screen -t 'cygwin' ssh cygwin bind -c shell ^L screen -t 'linux' ssh www bind -c shell ^R screen -t 'root' sudo -i # WINDOW {{{2 # ----------- # # Like Vim's key bindings for windows. bind n screen bind ^N screen bind c kill bind ^C kill bind j next bind ^J next bind k prev bind ^K prev # REGION {{{2 # ----------- # # Like Vim's key bindings for windows. # Use the prefix ^R instead of ^W. bind ^R eval 'echo -p "\^\^R%080="' 'command -c region' bind -c region n split bind -c region ^N split bind -c region s eval 'split' 'focus down' 'other' # split the current window bind -c region ^S eval 'split' 'focus down' 'other' bind -c region c remove bind -c region ^C remove bind -c region o only bind -c region ^O only bind -c region j focus down bind -c region ^J focus down bind -c region k focus up bind -c region ^K focus up bind -c region t focus top bind -c region ^T focus top bind -c region b focus bottom bind -c region ^B focus bottom bind -c region r focus down bind -c region ^R focus down bind -c region R focus up bind -c region = resize = bind -c region + resize +1 bind -c region - resize -1 bind -c region _ resize max # __END__ #{{{1 # vim: filetype=screen foldmethod=marker