0

I use the :oldfiles command a lot, but it's annoying that it gets populated with things like terminal or help buffers. My understanding is that any buffer for which a mark exist will be listed by the command, so if I close Neovim while the focus is on a help or terminal buffer, I will see those next time on the lists.

I know I can use the r option of the ShaDa file to filter out some paths by a prefix, but I wonder if there's a wider solution, after all I just care about files whose buftype is empty

0

In the end I wrote a function that wipes out all buffers whose type is help, which is executed by the VimLeavePre event, i.e. right before the ShaDa file is written

1
  • Please also include the relevant code in the post so it remains self-contained
    – D. Ben Knoble
    Jul 28 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.