如何使vi重绘屏幕? [英] How to make vi redraw screen?

查看:19
本文介绍了如何使vi重绘屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用

git commit --amend

它会进入一个vi窗口让我输入commit的注释,问题是vi窗口会显示一些以前shell背景的脏字符.所以我想知道如何让vi重新加载或重绘屏幕使屏幕正常.

It will enter into a vi window to let me input comments for commit, the problem is the vi windows will show some dirty characters from former shell background. So I wonder how can I let vi to reload or redraw the screen to make the screen normal.

到目前为止,我尝试重置终端和 Ctrl+L,它可以工作,但我想知道这种情况有最佳答案吗?

So far, I try reset terminal and Ctrl+L, it works, but I wonder is there best answer for such situation?

推荐答案

35 年来,我一直将 ctrl+L 用于此类目的,现在有什么问题它吗?

I've been using ctrl+L for such purposes for 35 years now, what's wrong with it?

这篇关于如何使vi重绘屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆