Reviewing commands history in Vim with q:
As with shell, in Vim you can go back in commands history list with Ctrl p. q: gives you more control, though.
When you press q:, a window with commands history pops up. The list allows you for:
- Searching for commands with regular Vim commands, like /
- Running the command under the cursor
- Modifying the command under the cursor and then running it
Next time before you jump straight to typing the command once again, consider using q:.
This protip has been written in 531 seconds