How to set the bash display to not show the vim text after exit?
Posted awildfish
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to set the bash display to not show the vim text after exit?相关的知识,希望对你有一定的参考价值。
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?的主要内容,如果未能解决你的问题,请参考以下文章
[Algorithm] How to find all the subsets of an n-element set T?
怎么给SharePoint得视图设置多个过滤条件? How to set multiple complex filter conditions to the SharePoint list view
css 使用一种颜色的子弹和另一种颜色的字体http://stackoverflow.com/questions/5306640/how-to-set-the-color-of-bullets-in-
MFC中, 如何设置我想要选择的Radio Button项 - How to set the selection by code.