Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 vim 中打开文件时,我通常会反射性地按下冒号以查看先前命令的列表,但它是空的。如何获取我以前的命令历史记录。
:history应该做你想做的。
:history
q:会更好。它将显示命令列表,您可以按j或k进行运动,然后enter运行选定的命令。
q:
j
k
enter