Vi and Vim Asked on August 31, 2021
I sometimes execute commands in Vim by mistake, either in normal-, visual-, or ex-mode and have no idea what was executed.
Is it possible to see a history of executed command per mode in Vim?
I know that I can see the history of executed ex-mode commands by pressing :
(to enter ex-mode) and then use the <arrow-up>
and <arrow-down>
keys to navigate the history, but I have no idea on how to do that in normal- or visual-mode?
There's no history for Normal/Visual mode in Vim.
The only thing I can remember of is v:operator
which is set to the last Normal/Visual mode operator executed.
Correct answer by Matt on August 31, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP