{"issue":{"created_at":"2011-11-24T18:25:40Z","state":"open","updated_at":"2011-11-25T17:42:20Z","user":{"gravatar_id":"a3199a305b36524d926ee26deac5dffa","id":356257,"url":"https://api.github.com/users/pschyska","login":"pschyska","avatar_url":"https://secure.gravatar.com/avatar/a3199a305b36524d926ee26deac5dffa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"I love your script!\r\nOn problem though: When I open a new MacVim window from Terminal i.e. with\r\n\r\n    mvim .vimrc.local\r\n\r\nThe inital focus is on nerdtree. I thinks it's a bit annoying as I probably just want to edit the file.\r\n\r\nHowever, when a directory is opened like\r\n\r\n    mvim .\r\n\r\nIt's the right thing to have focus in nerdtree (as I'm probably want to browse for a file now and not write to the empty buffer)\r\n\r\nIs there any way to say: When a new window is opened on a file, focus the file buffer, and when it's opened on a directory, focus nerdtree?\r\n\r\nIm using https://github.com/carlhuda/janus as base for my vim experiments and I'm not very experienced with vim, so maybe it's my environment :-)\r\n","assignee":null,"id":2344035,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":6,"title":"(MacVim) Opening file with mvim filename: Focus","closed_at":null,"html_url":"https://github.com/jistr/vim-nerdtree-tabs/issues/6","url":"https://api.github.com/repos/jistr/vim-nerdtree-tabs/issues/6","milestone":null},"action":"created","comment":{"created_at":"2011-11-25T17:42:20Z","updated_at":"2011-11-25T17:42:20Z","user":{"gravatar_id":"0e48c6edbc780e069f225a295f9ca65d","id":331840,"url":"https://api.github.com/users/jistr","login":"jistr","avatar_url":"https://secure.gravatar.com/avatar/0e48c6edbc780e069f225a295f9ca65d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi Paul, this should not be caused by Janus, I have the same behavior in Linux/GVim and I do not use Janus anymore.\r\n\r\nI'm not sure right now what can be done about this, but I'll definitely look at the problem when I have more time.\r\n\r\nThanks for the report :)","id":2876603,"url":"https://api.github.com/repos/jistr/vim-nerdtree-tabs/issues/comments/2876603"}}