require("utility.autocmd") -- Exit Vim if a terminal is the only window remaining in the only tab. --[[ autocmd( "BufEnter", "*", "if tabpagenr('$') == 1 && winnr('$') == 1 && g:is_term_open == 1 | quit | endif" ) ]]