Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start VIM with NERD tree opened automatically? [duplicate]

Tags:

vim

vi

nerdtree

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

like image 409
rubiii Avatar asked Sep 24 '10 16:09

rubiii


People also ask

How do I turn off nerd tree?

If you want to close NERDTree window make sure you are inside the NERDTree menu. You can switch windows by using ctrl+w then type :q to close NERDTree window so that you will be left with the window for editing your code.


1 Answers

Yes. Just write this line to your .vimrc :

autocmd VimEnter * NERDTree
like image 195
Benoit Avatar answered Oct 14 '22 20:10

Benoit