:browse oldfiles, if the output goes longer than one screen then you have to hit
<space> for the next screen or
<esc> to go to the menu where you can type the number of the old file you want to edit.
I'm trying to create a mapping that automatically enters
<esc> for me while the
:browse command is still in progress, saving me a keypress. This will leave me in the command mode where I just enter a number. I tried this mapping:
nmap <F5> :bro ol \| call feedkeys('<Esc>') but that doesn't work. The
feedkeys function call doesn't want to kick in until the
browse command finishes. How can I do this?
I could also use FZF, Telescope or another plugin to bring up recently-opened files, but the
:browse oldfiles command is faster even if it's more limited than what a plugin can provide