Bash offers the functionality to reverse search via Ctrl + R. Then one can type in a part of a command it will show a fitting entry from the history.
Assume this is my history:
vim foo1
vim foo2 # I want to go here
vim foo3 # this is where I land, how to go back?
I search for foo
. Hitting Ctrl + R again shows the next fitting search entry. Often it happens to me, that I am too fast and navigate past my intended result and vim foo3
is shown and now I want to go back to vim foo2
.
Hence my question is: How do I navigate within the reverse search?