Trying to force cursor to leave NERDTree window on MacVim startup (
mvim .) so I could continue make new split-ups and open certain files in them. But it feels like cursor is stuck in the NERDTree and doesn't listen to me.
Here's contents of my
function! SplitIt() vsplit " this works exe "normal \<c-w>\<c-w>" " doesn't. also tried normal ^W^W, bd etc. " vsplit Gemfile " ... endfunction autocmd VimEnter * call SplitIt()
Tried a whole buncha commands which works well when I type them in NERDTree window, but are useless in this script. Driving me crazy.
Any help will be really appreciated. Thanks!