Auto-open NERDTree in “EVERY” tab

后端 未结 7 2372
说谎
说谎 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:35

    A better solution is to open NERDTree only if there are no command line arguments set.

    " Open NERDTree in new tabs and windows if no command line args set autocmd VimEnter * if !argc() | NERDTree | endif autocmd BufEnter * if !argc() | NERDTreeMirror | endif

    NERDTree is e.g. not helpful if you do a git commit or something similiar.

提交回复
热议问题