vim screen restore

守給你的承諾、 提交于 2019-12-03 06:02:55

问题


i use vim in screen for development and if i quit vim, the current screen-content stays there...

outside the screen (xterm), exiting vim will restore the previous buffer (like:

[ server1 ]~$ cmd
      some stuff, some stuff
[ server1 ]~$ cmd
[ server1 ]~$ cmd

)

But not inside screen.

I tried to use xterm as terminal inside screen - but not with the wanted effect.

Thanks for Help!


回答1:


In the file .screenrc in your home directory, add the line:

altscreen on

That should fix it. According to the man page for screen, it turns on "alternate screen" support, "just like in xterm."

I tested it out, and it does what you're looking for.



来源:https://stackoverflow.com/questions/1681034/vim-screen-restore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!