Typing a command like:
cat somefile
Press enter and run the command.
Then searching for it using ESC + k, allows me to bring it back.
I want to go back and edit the command while still typing in the prompt. From what I understand, ESC + o would allow me to type over or go back what I wrote in the command.
However, those hotkeys do not seem to work, after the initial press. Though I am however able to edit after a few key presses of the arrow keys. Is there another way to edit command in the prompt that is retrieved using ESC + k?
set vi
mode on.