[Linux Shell] vim editor quit without content leave on the screen

来源:互联网 发布:java调用c语言 编辑:程序博客网 时间:2024/05/29 08:00

When you run vim in Xshell to edit some files, the content leaves on the screen after you exit the editor.

Two ways to solve this problem:

1. set the environment variable: TERM

export TERM = xterm

in .bashrc for bash


or 

setenv TERM = xterm 

in .cshrc for csh

After setting, source the file to take effect.


2. add one line to set the term type in .vimrc

set term = xterm


原创粉丝点击