Make NERDtree not be the default window when VIM starts?

前端 未结 2 833
感情败类
感情败类 2021-02-14 06:46

I just started playing around with NERDtree and VIM and can\'t figure out how to make NERDtree NOT be the default window when it opens.

I\'d like to ope

相关标签:
2条回答
  • 2021-02-14 06:52

    Have you tried this?

    " Start NERDTree
    autocmd VimEnter * NERDTree
    " Jump to the main window.
    autocmd VimEnter * wincmd p
    

    It seems to me, based on your .vimrc, that you are opening NERDTree. You just want to jump to the other window afterwards.

    0 讨论(0)
  • 2021-02-14 07:00

    What you can do is just change the active pane.

    autocmd VimEnter * wincmd w
    

    This is the equivalent of hitting CTRL+W W, stick it in your .vimrc after where you call NERDTree and it'll stick you in the next pane on startup.

    0 讨论(0)
提交回复
热议问题