How to start VIM with NERD tree opened automatically?

rubiii picture rubiii · Sep 24, 2010 · Viewed 28.6k times · Source

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

Answer

Benoit picture Benoit · Sep 24, 2010

Yes. Just write this line to your .vimrc :

autocmd VimEnter * NERDTree