Search code examples
vimnerdtree

How to open a file in new tab by default in NERDTree?


I want a file to be opened in a new tab when I enter or double click it. I know there is t shortcut but I always open a file in a new tab and enter is more confortable for me.


Solution

  • Try adding

    let NERDTreeMapOpenInTab='\r'
    

    or

    let NERDTreeMapOpenInTab='<ENTER>'
    

    to your .vimrc.