How to fzf recent files of vim/nvim, not inside vim but from terminal
Solution 1:
This is how you can save the list of recent files from vim
to a file:
vim -c "call append(0, v:oldfiles)" -c "write vim-oldfiles.tmp" -c exit
Put v:oldfiles
(the list of recent files saved in ~/.viminfo
) into the first (new and empty at the start) buffer, write the buffer to a file, exit.
Now you can pass the content of file to fzf
.