mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

Suggestion for NERDTree integration. #461

Closed browser-bug closed 3 years ago

browser-bug commented 3 years ago

I've been using startify for some days now and I love it. Since I'm a NERDTree user too I've been struggling with session management alongside it. In the docs there's a suggestion on how to workaround in case of session autosaving like on startify_session_before_save:

let g:startify_session_before_save = [
        \ 'echo "Cleaning up before saving.."',
        \ 'silent! NERDTreeTabsClose'
        \ ]

Since NERDTreeTabsClose seems to be a dead project and outdated I would suggest to change it to (reference):

let g:startify_session_before_save = [
        \ 'silent! :tabdo NERDTreeClose',
        \ 'silent! :bufdo NERDTreeClose'
        \ ]

Not sure if the second one is needed or not because the same instance of NERDTree should persist on multiple buffers but can't hurt.

mhinz commented 3 years ago

I think :tabdo should be good enough in that case.

Thanks for letting me know! ✨