jistr/vim-nerdtree-tabs — Issue #2: meaningful_tab_names option breaks NERDTree function to open new tabs in background
Author: largon
Created: 2011-10-16 15:52:39+00:00
State: open

There's a function in NERDTree mapped to key "T" which allows you to open selected files in new tabs while keeping focus in NERDTree buffer. I find it useful when I want to open few files for subsequent editing.

vim-nerdtree-tabs with default option g:nerdtree_tabs_meaningful_tab_names=1 kind of breaks this behaviour, because it removes focus from NERDTree every time new tab is opened.

I think it would be nice if:

1. this side effect was explicitly mentioned in documentation no matter if g:nerdtree_tabs_meaningful_tab_names is on or off in default configuration.

2. vim-nerdtree-tabs would try to set focus to the right window (= window with focus when leaving the tab) based on some tabpage-variable when Vim switches back to the tab.

What do think?