2

When I open vim (or gvim), it loads a list of buffers of files I have been working on. I want it to have an empty buffer list on startup. How can I accomplish this?

2
  • check your 'viminfo' setting Nov 4, 2016 at 6:42
  • Thanks for asking this question. Too many open buffers slows down Vim terribly. Aug 17, 2017 at 1:04

1 Answer 1

4

You seem to have the % value in your 'viminfo' option; it enables restoring of the buffer list. As this is off by default, you (or your Vim distribution) must have turned that on.

:help viminfo-%:

% When included, save and restore the buffer list. If Vim is started with a file name argument, the buffer list is not restored. If Vim is started without a file name argument, the buffer list is restored from the viminfo file.

1
  • Thanks, I searched through my .vimrc and found that enabled. Nov 4, 2016 at 17:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .