Search code examples
vimvinerdtree

How to start VIM with NERD tree opened automatically?


Possible Duplicate:
Auto-open NERDTree in “EVERY” tab

Is there a way to automatically execute the :NERDTree command when VIM is launched for the first time or configure NERDTree to always open on startup?

PLEASE CLOSE. Just noticed that this question was answered before:
Auto-open NERDTree in "EVERY" tab


Solution

  • Yes. Just write this line to your .vimrc :

    autocmd VimEnter * NERDTree