I'm trying to figure out how to configure ViM so that when it starts up it shows my Tagbar plugin and NERDTree plugin, but I don't want it to show up when I'm committing files in GIT. So far I have...
if has("autocmd")
" startup with tagbar window shown
autocmd VimEnter * TagbarToggle
" startup with nerdtree window shown
autocmd VimEnter * NERDTreeToggle
" startup in the correct window
autocmd VimEnter * wincmd l
endif
This does everything except for when its in Git commit message. How can I check for the file?
I've tried if
if !globpath( '.', '**/.git/' )
echom 'youre not in a git file'
endif