add function of NERDTree auto-cloing