Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to restore an unlisted buffer in Vim and send it back to the list of buffers?

For example:

  1# "one.txt"
  2% "two.txt"
  3u "three.txt"

Can I send the third buffer back to the list?

  1# "one.txt"
  2% "two.txt"
  3  "three.txt"
share|improve this question
up vote 1 down vote accepted

Switch to your unlisted buffer and reset the 'buflisted' option:

:buf 3
:set buflisted
share|improve this answer

Or, another way:

:badd three.txt
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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