Browse and repeat Vim commands
If you typed a command in Vim's command line and want to repeat it you can open the command-line window and browse through past commands. There are two ways two do that:
-
From Normal mode type
q:
-
From the command line after typing a colon press
CTRL-f
In the command window you can browse up and down with HJKL and hit return
to re-run the command.