Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

vim

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?

like image 286
leeand00 Avatar asked Feb 19 '23 11:02

leeand00


2 Answers

:history will show you a history of your commands.

Edit:

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

like image 105
Julien Vivenot Avatar answered May 21 '23 05:05

Julien Vivenot


you can check all the commands by looking into .viminfo in your home folder or :history inside vim

like image 32
Saddam Abu Ghaida Avatar answered May 21 '23 06:05

Saddam Abu Ghaida