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

秦联
2023-12-01

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

转载于:https://www.cnblogs.com/helww/p/6713622.html

 类似资料:

相关阅读

相关文章

相关问答