screen小技巧

使用screen的时候。用vim打开文件。总是不能恢复打开之前的状态。。

google 关键词 ‘restore screen contents when screen exits’

echo ‘altscreen on’ >> ~/.screenrc

 

参考:

http://chenyufei.info/blog/2011-12-15/prevent-vim-less-clear-screen-on-exit/

http://superuser.com/questions/137714/using-screen-commands-like-less-and-man-dont-clear-the-screen-afterwards