Created
May 6, 2015 20:44
-
-
Save scrooloose/0495cade24f1f2ebb602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call NERDTreeAddKeyMap({'key': 't', 'callback': 'NERDTreeMyOpenInTab', 'scope': 'FileNode', 'override': 1 }) | |
function NERDTreeMyOpenInTab(node) | |
call a:node.open({'reuse': "all", 'where': 't'}) | |
endfunction |
The above given solution is working just need to change the order of line.
function NERDTreeMyOpenInTab(node)
call a:node.open({'reuse': "all", 'where': 't'})
endfunction
autocmd VimEnter * :call NERDTreeAddKeyMap({'key': 't', 'callback': 'NERDTreeMyOpenInTab', 'scope': 'FileNode', 'override': 1 })
hope this peace of code also work with enter
to open same file. is this possible ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, I tried your instruction which is given as bellow
This is something is not working in my case. do you have any other way to do so. Thanks.
Above solution is not working with one of this