If I :bdat the NERDTree window, I cannot load it back by closing the NERDTree window and opening it back: it still comes empty.
How to solve this? Ideally I’d like to attribute no action to :bd in this buffer, but a proper reload shortcut would do.
Typing
:NERDTreeshould reopen the buffer even after:bd. Perhaps some other setting is causing it to reopen empty?If you want to disable
:bdin the NERDTree buffer, use thisautocmdin your .vimrc: