Auto-open NERDTree in vim

varnie picture varnie · Nov 18, 2009 · Viewed 19.5k times · Source

Does someone know how to force .vimrc to auto-open NERDTree each time vim is invoked? The operation system is *nix.

Answer

michael picture michael · Nov 19, 2009
 au VimEnter *  NERDTree

in your vimrc should do it

:he autocmd.txt for background