How to search through Vim’s command history


I would like to have the following search in Vim too


Enter a word of your previous command, and you get the full command.

I know the chronological history tool in Vim


However, it is not that useful as the fuzzy reverse search.

How can you have a similar reverse search in Vim as in the terminal?

Best Answer

Type q: in the normal mode to open commands window. You can search/edit here using regular vim commands. You start in Normal mode. Press Enter to execute a command.

This approach lets you search across whole command not just beginning of line.