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

For example:

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

Can I send the third buffer back to the list?

:ls
  1# "one.txt"
  2% "two.txt"
  3  "three.txt"
link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

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

:buf 3
:set buflisted
link|improve this answer
Thanks, that works! – Shamaoke Feb 5 '11 at 10:28
feedback

Your Answer

 
or
required, but never shown

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