How do you get your recent vi command history to show up? I keep randomly getting like my previous 5 commands and can't figure out how I'm doing it. I think it has something to do with the shift key and another button.
try the following:
<ESC>: (Hit Escape key, then colon key)
then
use up-down arrows to recall previous commands
I know that. I wanna know how I keep on getting that list to appear.
use the following,
:history
- It will give you the command history.
You can also get the history of the command list inside vim by using the following.
Go to Escape mode by pressing ESC key.Then,press q and followed by colon.It will also give the history.
For your additional information the file .viminfo will contain the commands that you have executed inside vim and as well as additional information.
This file will be there under your home directory.
Exactly :). Thx for that. It was driving me crazy that I couldn't figure it out.