I have the following line in my .vimrc to open NERDTree on startup:
NERDTreeToggle
Now, if I start vim, I have NERDTree on the left and the file I opened on the right.
The left window is focused on startup. How can I put the focus on the right window on startup?
au VimEnter * wincmd l
work?.vimrc
loads NT immediately:Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
, so I can useNERDTreeToggl
in.vimrc