> > Is it possible to have NERDtree loaded on startup, but to have the > cursor not in the NERDTree buffer? > > I have tried: > > function! LoadNERDTree() > :NERDTree > normal "<c-w>l" > endf > > :au VimEnter * :call LoadNERDTree() > > > But the problem is that I end up starting in the NERDTree buffer > rather than the buffer of the file I want to edit. > > >From my .vimrc (I don't remember where I copied it from):
" autocmd VimEnter waits until all initialization is finished (plugins are loaded) autocmd VimEnter * NERDTree " wincmd p puts the cursor in the main window (rather than the NERDTree window) autocmd VimEnter * wincmd p -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
