我的screen配置:

escape ``

# hard status and tabs for windows
#hardstatus on
#hardstatus alwayslastline
#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y}"
defmonitor on
activity 'Activity in window %'

#hardstatus lastline "%c %t %n %w"
#startup_message off
#vbell off
#defscrollback 512

#caption always "%?%F%{-b 4w}%?%L=%-Lw%45>%{-b w4}%n%f* %t%{-}%+Lw%-0<"
caption always "%{.b}%-w%{.W}%n %t%{-}%+w"

#deflogin off
# default starting dir is ~
#chdir

# create default screens
screen -fn -t ob1 -L 0 bash
screen -fn -t mysql -L 0 bash
screen -fn -t deploy -L 0 bash
screen -fn -t src -L 0 bash
# screen -fn -t s171 -L 0 ssh 10.10.10.111

# switch to window 0
select 3

vbell off

我一般这么启动screen:

screen -dR dev

用Screen的好处:
1. 不怕掉线
2. 窗口快速切换
3. 随时关闭CRT终端,换个电脑无缝继续。开多少个vim都没关系