I want to open vim and see my ":" commands from a previous session. Is that possible?

command, ubuntu, vim

Solution

`:history` should do what you want.

Problem

When i open a file in vim I usually press, by reflex, the colon to see a list of previous commands, but its empty. How can I get my previous command history.

Original source