Vim, NERDtree not recovered in session restore
问题 When I have a NERDtree panel and I save a Vim session (mksession [filename]), then open the session (vim -S filename), the panel is opened and tagged "NERDtree" but is not populated. If I try ":NERDtree" from the commandline, the window does get populated, but another panel now opens. Any ideas wrt this weird behaviour? 回答1: Just decided to deal with this very issue myself. In my case, the session is created when I quit Vim with the following in my vimrc: autocmd VimLeave * mksession!