本文介绍了在“EVERY"中自动打开 NERDTree标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过在 NERDTree 中按 或 在每个选项卡中打开 NERDTree,如果是,如何?
Is it possible to open NERDTree in every tab with pressing or in NERDTree, if yes, How?
推荐答案
这可能不是最好的方法,但是如果您编辑 plugin/NERDTree.vim 并更改它:
This is probably not the best way, but if you edit plugin/NERDTree.vim and change this:
exec "nnoremap <silent> <buffer> ". g:NERDTreeMapOpenInTab ." :call <SID>openInNewTab(0)<cr>"
为此:
exec "nnoremap <silent> <buffer> ". g:NERDTreeMapOpenInTab ." :call <SID>openInNewTab(0)<cr>:NERDTree<cr>"
它会改变 NERDTree 视图中 't' 的绑定,首先打开文件,然后打开 NERDTree.请注意,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.
这篇关于在“EVERY"中自动打开 NERDTree标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!