How to automatically close NERDTree after a file has been opened? August 19, 2023 by Tarik Add the following to your .vimrc let NERDTreeQuitOnOpen=1