Auto-open NERDTree in "EVERY" tab

tech.kapil picture tech.kapil · Dec 30, 2009 · Viewed 26.1k times · Source

Is it possible to open NERDTree in every tab with pressing t or T in NERDTree, if yes, How?

Answer

Dustin picture Dustin · May 4, 2010
autocmd VimEnter * NERDTree
autocmd BufEnter * NERDTreeMirror

edit: The above command seems to open the new tab in NERDTree's buffer. Instead use this as mentioned by wejrowski in the comment below :

autocmd BufWinEnter * NERDTreeMirror