Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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"

2 Answers 2

up vote 0 down vote accepted

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

:buf 3
:set buflisted

Or, another way:

:badd three.txt

This site is currently not accepting new answers.

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