Quick and dirty MRU

2 Points

Romain Lafourcade Romain Lafourcade

4 years ago

Lists old files found in your ~/.viminfo and prompts for a file number.

This provides the same functionnality as :browse oldfiles but allows for the file to be opened directly in the current window, a new horizontal window, a new vertical window or a new tab.

nnoremap ,me :oldfiles<CR>:edit #<
nnoremap ,ms :oldfiles<CR>:split #<
nnoremap ,mv :oldfiles<CR>:vsplit #<
nnoremap ,mt :oldfiles<CR>:tabedit #<

Romain Lafourcade

Romain Lafourcade 4 years ago

TODO: make it more resilient.