starts up autocmd vimenter * NERDTree • Use F2 to open NERDTree map <F2> :NERDTreeToggle<CR> • Close vim if the only window left open is a NERDTree autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif 24