Is possible to search in vim history

vim

On bash I press CTRL+R and typing vim bash return list of commands typed in past with vim string.Is possible to make something like this in vim history for commands starting with the : ?

Best Answer

You may move up and down through the commands saved in Vim's command history by using the Up and Down keys after having typed :.

If you enter the start of a command and press Up, Vim will give you the most recent saved command with the same prefix string. In this respect it works in the reverse order from what Bash uses in that you first type in a bit of a command and then press Up (rather than, as in Bash, first press Ctrl+R and then type something).

This also works for search strings.

Related Question