{"comment":{"created_at":"2011-10-16T20:41:14Z","body":"> The only question remaining is how to enable \"always keep my cursor in file window when switching tabs\" without breaking opening tabs in background.\r\n\r\nI think you can't do that. I've looked at NERDTree and opening in background is implemented as these steps:\r\n1. save reference to tab\r\n2. open new tab via tabedit\r\n3. jump back to previous tab via tabnext with saved reference\r\n\r\nSo I think there's no way how you can distinguish between opening new tabs in background and regular tab switching.\r\n\r\nIf you want to have focus always in file window, I think it's OK and it's best to keep current state then. Only to explain the problem in documentation so people can make their minds what suits their workflow better and tweak configuration accordingly.","updated_at":"2011-10-16T20:41:14Z","url":"https://api.github.com/repos/jistr/vim-nerdtree-tabs/issues/comments/2422925","id":2422925,"user":{"gravatar_id":"5da5dc1ce6acae3a1332925b396ecbae","avatar_url":"https://secure.gravatar.com/avatar/5da5dc1ce6acae3a1332925b396ecbae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/largon","id":339486,"login":"largon"}},"action":"created","issue":{"number":2,"created_at":"2011-10-16T15:52:39Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"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.\r\n\r\nvim-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.\r\n\r\nI think it would be nice if:\r\n\r\n1. this side effect was explicitly mentioned in documentation no matter if g:nerdtree_tabs_meaningful_tab_names is on or off in default configuration.\r\n\r\n2. 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.\r\n\r\nWhat do think?","comments":3,"title":"meaningful_tab_names option breaks NERDTree function to open new tabs in background","updated_at":"2011-10-16T20:41:14Z","url":"https://api.github.com/repos/jistr/vim-nerdtree-tabs/issues/2","id":1922150,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"5da5dc1ce6acae3a1332925b396ecbae","avatar_url":"https://secure.gravatar.com/avatar/5da5dc1ce6acae3a1332925b396ecbae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/largon","id":339486,"login":"largon"},"html_url":"https://github.com/jistr/vim-nerdtree-tabs/issues/2","labels":[],"state":"open"},"legacy":{"issue_id":1922150,"comment_id":2422925}}