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

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

问题描述

当我使用

  git commit --amend 

它会进入一个vi窗口让我输入注释以提交,问题在于vi窗口会显示前壳背景中的一些脏字符。所以我想知道如何让vi重新加载或重画屏幕来使屏幕正常。



到目前为止,我尝试重置终端和Ctrl + L,它工作正常,但我不知道是否有这样的情况最好的答案?

解决方案

我一直在使用 ctrl + L 为此目的已有35年了,它有什么问题?


When I use

git commit --amend

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.

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

解决方案

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

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

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