VIM Editor ::: Closing All Windows/Splits Except Current One

If you are like me, you use NERDTree. While being a NERDTree user with Vim, often it is necessary(or just nice) to be able to close all open splits excluding NERDTree’s.

In order to close those other windows in VIM, or splits, while leaving NERDTree open, it is necessary to navigate to NERDTree pane and press:

ctrl + w o (C-w o)

Source