When I run vim, the NerdTree plugin opens a project explorer. I achieved this by adding the following line to my
autocmd VimEnter * NERDTree
It opens two buffers but unfortunately I need to press
^W^W each time because the active buffer is the left one, where the NerdTree is located.
How can I make vim emulate these key presses on startup?