您的位置:首页 > 运维架构 > Shell

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

2013-06-14 22:35 281 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐