开发者

vim screen restore

开发者 https://www.devze.com 2022-12-10 03:39 出处:网络
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

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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号