How do I get a list of the history of all the vim commands I ran?

vim

Solution

`:history` will show you a history of your commands.

Edit:

In normal mode, `q:` will open your history in a new buffer.

Problem

I'm aware that much like a bash prompt in Vim you can press `:` and get a list of all the history commands by pressing up and down. But is there a way to export this command history into a buffer?

Original source