I'm trying to automatically start NERDTree when Vim is started. This worked
fine:
autocmd VimEnter * NERDTree
But this leaves the NERDTree window active and I want the new window to be
active so I can start working without <C-w>h. Can this be done?
Another question regarding NERDTree: Is it possible that the NERDTree window
is automatically closed when I close all normal windows (like it works with
help pages)?
Thanks for your help,
Simon
--
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
autocmd VimEnter * exe 'NERDTree' | wincmd l
works for me, though change that last l to an h if NERDTree opens on
the right for you...
> Another question regarding NERDTree: Is it possible that the NERDTree window
> is automatically closed when I close all normal windows (like it works with
> help pages)?
I'm not sure what the best way to do this one is.
~Matt
Thanks, this works perfectly.