Sometimes I'll be using VIM and something will happen, and I don't know what it was or what I typed that caused it. Is there a way to list some of the recent keys that were typed, and, even better, find out what actions they triggered?
|
Calling
will let you inspect with |
|||
|
|
First make sure that vim is remembering any lines of history at all. This sets the history to 1000 commands and searches:
If you type the start of what you are looking for you can use the ↑ ↓ keys to scroll through the history - this applies to commands and searches. For example, if you had searched for china then cuba then Chad then cyprus: You could type Other commands:
|
|||||||
|
|
You could add this to your .vimrc :
It will show in the status bar the command you are making as you type them. While this won't give you an history, this is the closest solution I know of. If however you are talking about |
|||
|
|
