Delete buffer and go back to netrw

154 Views Asked by At

When I open a file using vim's file browser netrw, I want get back to netrw after deleting the file buffer. Here's what I'm doing:

vim .

Open a file with ENTER. Then delete the buffer:

:bd

But this puts me in a new unnamed buffer. I might be wrong, but I thought getting back to netrw used to be the standard behavior. Was there a change? Is there a variable to control this?

The difference shows up with vim . and :ls!:

# Output (good)
1  h   "~/"                           line 1
2u%a-  "[No Name]"                    line 8

# Output (bad)
2u%a-  "~/"                           line 8
0

There are 0 best solutions below