Vim “show my last command” command?

前端 未结 5 1907
小鲜肉
小鲜肉 2020-12-12 18:44

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

5条回答
  •  被撕碎了的回忆
    2020-12-12 19:23

    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.

提交回复
热议问题