开发者

Why does tmux erase terminal contents on editor exit?

Say I'm running tmux and use "ls" to get something on the screen. Then I enter Vim to edit some file.开发者_开发百科 After exiting Vim, tmux erases whatever text is above the bash prompt (not like the clear command since the prompt stays in the same place).

Is there a way to prevent this behavior? I'm using tmux 1.3 in Terminal.app on OS X.


If your version of tmux has this option, add this line to your ~/.tmux.conf:

set-window-option -g alternate-screen on


Try putting this in your .vimrc file:

set t_ti= t_te=
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜