Make NERDtree not be the default window when VIM starts?

前端 未结 2 828
感情败类
感情败类 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 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.

提交回复
热议问题