blob: 9761ca6a2ac9f33f64a4ef89509a123dac4aff99 (
plain) (
tree)
|
|
# VARIABLES
vbell off
autodetach on
startup_message off
multiuser on
defscrollback 1000
silencewait 15
bufferfile $HOME/.screen_exchange
altscreen on
shell -$SHELL
defnonblock on
term screen
# nice caption and status bar with the different screens
caption always "%{-b} [%n-%t] %{+b} %h %= %{+b r}%u%{-} "
hardstatus alwayslastline "%{= w} %?%-Lw%?%{+b r}%n*%f %t%?(%{+b w}%u%{-})%?%{-}%+Lw%?%= [%{+b}%l%{-}] "
defhstatus "screen: ^Et"
# XTERM TWEAKS
termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
termcapinfo xterm* OL=1000
termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
termcapinfo xterm* be
termcapinfo xterm|xterms|xs ti@:te=\E[2J
# KEYBINDINGS
# remove some dangerous keybindings
bind .
bind ^\
bind \\
bind ^h
bind h
# auto indent mode in vim
register [ "\033:se noai\015a"
register ] "\033:se ai\015a"
bind ^] paste [.]
# resize screen
bind = resize =
bind + resize +3
bind - resize -3
bind _ resize max
# register screen
setenv SCREEN 1
|