vim-nerdtree-tabs icon indicating copy to clipboard operation
vim-nerdtree-tabs copied to clipboard

how to make nerdtree always show in each new tab

Open JIAKanghao opened this issue 7 years ago • 1 comments
trafficstars

Hi all,

Is there any method to make nerdtree always automatically show in a each tab even a new tab is open through press t in nerdtree?

Thanks

JIAKanghao avatar Sep 25 '18 12:09 JIAKanghao

You could do something like this:

autocmd BufWinEnter * NERDTree

Or more specifically:

" Open the existing NERDTree on each new tab.
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif

tobias-wilfert avatar Jun 10 '22 21:06 tobias-wilfert