add config
    let g:NERDTreeAutoDeleteBuffer=1