Close file tree for commit messages

This commit is contained in:
Sage Vaillancourt 2021-10-06 14:18:30 -04:00
parent bf441aba5f
commit dfc6a780e9
1 changed files with 1 additions and 0 deletions

1
.vimrc
View File

@ -28,6 +28,7 @@ autocmd VimEnter * NERDTreeFind
autocmd VimEnter * wincmd w autocmd VimEnter * wincmd w
" Auto close NERDTree " Auto close NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
autocmd VimEnter COMMIT_EDITMSG NERDTreeClose
set mouse=a set mouse=a