When inside a session, I often end up with multiple tabs containing multiple split buffers and multiple "instances" of NerdTree buffers.

Is there a command to close all NerdTree buffers in the session ?

1 Answer 1


You can do this with the tabdo command:

:tabdo NERDTreeClose

This will execute the NERDTreeClose on every tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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