Currently I have NERDTree opening by default when I edit a file that is not a git commit message using this command:
autocmd VimEnter * if &filetype !=# 'gitcommit' | NERDTree | endif
Only issue is that when the file opens, NERDTree is the default buffer, which is very annoying. What can I add to my vimrc file so that when I open a file, that file is the focused buffer, and not NERDTree?