I just started using buffers in Vim and I couldn't figure out how to list recent closed buffers. Is there a simple way (like
:ls) to list those? Are they actually stored by Vim?
Maybe I'm misusing buffers, but what I want to do is to glance at recent closed buffers and then reopen (
:e) one of those (of which at that moment I don't remember the (file)name).
:help buffers) for terms like
buffer closed, but none of them got me closer to doing what I want.
Edit: I tried
:oldfiles (as D. Ben Knoble suggested) but that doesn't seem to work as I'd expect. When I'm viewing one file (buffer)
A.file and open another one
B.file (using NERDTree) and just after that I close
:oldfiles doesn't show
B.file on the list.