Vim“显示我的最后一个命令"命令? [英] Vim "show my last command" command?

查看:17
本文介绍了Vim“显示我的最后一个命令"命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个命令可以显示正常模式下的最后一个命令是什么?

Is there a command which shows what was the last command in normal mode?

假设我不小心碰到了随机键并得到了一些意想不到的结果.当然我可以撤消它,但我能透露按下了什么键以及它是如何解释的吗?

Suppose I accidently hit random key and got some unexpected result. Sure I can undo it, but could I reveal what key was pressed and how it was interpreted?

推荐答案

点击冒号 (:),然后使用向上箭头开始返回以前的命令.您也可以使用向上/向下箭头在列表中移动.

Hit the colon (:) and then use the up arrow to start going back through previous commands. You can use the up/down arrows too to move around the list.

这篇关于Vim“显示我的最后一个命令"命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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