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 ?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityYou can do this with the tabdo
command:
:tabdo NERDTreeClose
This will execute the NERDTreeClose
on every tab.