2

在 tmux shell 中,退出 vim 后,vim 屏幕并没有被清除。我正在使用zsh。不使用 tmux 也能正常工作。同样的问题也发生在屏幕上。

我正在使用 vim 7.3.672、tmux 1.7,全部采用默认配置。

4

2 回答 2

3

Put this line in your .screenrc:

altscreen on

Then screen will clear the VIM content when VIM exits.

With tmux, it should work out of the box.

PS. this is my .tmux.conf, in case you find anything interesting in it.

于 2013-03-24T03:47:22.787 回答
1

将以下行放入您的 .zshrc 中,然后重新启动终端。

export TERM=xterm

这个对我有用。

于 2014-08-22T12:01:36.220 回答