首页 > 系统服务 > 详细

How to set the bash display to not show the vim text after exit?

时间:2017-04-15 11:45:03      阅读:271      评论:0      收藏:0      [点我收藏+]

Xshell客户端在vim编辑文件保存退出,仍然显示文本内容,而不是回到shell terminal终端。

 

解决办法如下:

  • User1 is using TERM=xterm, in this case when you exit vim it will clear the terminal.
  • User2 is using TERM=vt100, in this case when you exit vim it will not clear the terminal.

具体操作:

1,vim ~/.bashrc

编辑:TERM=‘xterm-color‘

保存退出

2,启动新bash:bash

How to set the bash display to not show the vim text after exit?

原文:http://www.cnblogs.com/helww/p/6713622.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!