Auto-open NERDTree in “EVERY” tab

后端 未结 7 2315
说谎
说谎 2020-11-30 22:10

Is it possible to open NERDTree in every tab with pressing t or T in NERDTree, if yes, How?

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 22:32

    This is probably not the best way, but if you edit plugin/NERDTree.vim and change this:

     exec "nnoremap   ". g:NERDTreeMapOpenInTab ." :call openInNewTab(0)"
    

    to this:

     exec "nnoremap   ". g:NERDTreeMapOpenInTab ." :call openInNewTab(0):NERDTree"
    

    it will alter the binding of 't' in the NERDTree view to first open the file and then open NERDTree. Note, that the NERDTree views will not keep in sync.

提交回复
热议问题