I'm using MacVim and to save all opened files when the window loses focus I have the following in my .vimrc file:
au FocusLost * :silent wa
This works great except it also saves my current NERDTree view into files... 'NERDTree_1, NERDTree_2, etc.
Any way to exclude NERDTree form the :wa command? Thanks.