Can you make vi “advance” the screen when opened?

2019-05-04 20:06发布

I often work in vi, suspend vi, run something on the cli, and then fg back into vi to work on the results. For instance, fixing errors that showed up when I ran the cli command.

However, when I fg vi, vi "wipes" the current terminal buffer and I can't see the "last screenful" of terminal output in the scrollback buffer.

Is there some setting in vi (or screen, I use screen) which would help me here?

I have searched google for a long time with no answers. I also realize that there are other workflows that solve this problem, but they aren't perfect (run from inside vi means no shell completion, etc).

7条回答
手持菜刀,她持情操
2楼-- · 2019-05-04 20:48

It is possible that scrolling the screen Ctrl+E or Ctrl+Y might do the trick as well.

查看更多
登录 后发表回答