auto close nerdtree if last window

This commit is contained in:
Jidbo 2021-09-06 13:45:22 +02:00
parent 533ff2c259
commit 0b47d28195
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA

View file

@ -11,6 +11,8 @@ highlight NERDTreeCWD guifg=#9CA3AF ctermfg=gray
highlight NERDTreeFlags guifg=#4B5563 ctermfg=green highlight NERDTreeFlags guifg=#4B5563 ctermfg=green
highlight NERDTreeExecFile guifg=#DC2626 ctermfg=green highlight NERDTreeExecFile guifg=#DC2626 ctermfg=green
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" AIRLINE SETUP " AIRLINE SETUP
" ========================= " =========================