" Better navigation of :oldfiles " In the overlay window: " loads the file under the cursor " q closes the overlay without action function! Oldfiles() call overlay#show( \ vimple#redir('oldfiles') \, { \ '' : ':call OldfilesAccept()' \ , 'q' : ':call overlay#close()' \ } \, {'filter' : 1, 'use_split' : 1}) endfunction function! OldfilesAccept() let old_file_number = matchstr(overlay#select_line(), '^\d\+') exe 'edit #<' . old_file_number endfunction command! -nargs=0 Oldfiles call Oldfiles()