vim and NERD Tree: Can NERD Tree persist across tabs in MacVim?

Aaron Massey picture Aaron Massey · Feb 17, 2010 · Viewed 8.3k times · Source

When using NERD Tree on MacVim, I can open a file in a new tab by using 't' (or 'T' to open it in the background) in the NERD Tree window, but when I switch to that tab, the NERD Tree window is no longer visible since it remains in the original tab. Is there a way to automatically open NERD Tree in new tabs when opening files from NERD Tree in new tabs? Or can NERD Tree persist across tabs?

Answer

Jiří Stránský picture Jiří Stránský · Sep 7, 2011

This NERDTree behavior was a pain for me, too. It annoyed me so much that I learned VimScript and made a plugin that keeps NERDTree consistent across all tabs all the time.

You can grab it on Github: https://github.com/jistr/vim-nerdtree-tabs