I want to use o to open a file that may already be open in some other tab within my VI session. It always jumps to the tab where the file is open. Is there some way to stop this and just duplicate the file in the current tab/split?
Add this to your .vimrc
let g:NERDTreeMapActivateNode = ''
let g:NERDTreeMapOpenInTab = 'o'
Note that hitting Enter now calls the function that pressing o
originally called by default. Also, it will open the file in a new tab even when no file is being viewed.
I would recommend just using t
or s
.
Add this to your .vimrc
let g:NERDTreeMapActivateNode = 'go'
let g:NERDTreeMapPreview = 'o'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With