On Tue, Dec 2, 2008 at 3:10 PM, Simon Ruderich wrote:
> Hi,
>
> 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?

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

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to