@@ 44,6 44,11 @@ let g:lightline = {
" Start NERDTree and put the cursor back in the other window.
autocmd VimEnter * NERDTree | wincmd p
let g:NERDTreeWinSize=50
+" Open the existing NERDTree on each new tab.
+autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
+
+" 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
set linebreak
set termwinsize=10x0
@@ 67,7 72,7 @@ hi clear SpellBad
hi clear SpellCap
hi clear SpellRare
hi clear SpellLocal
-hi SpellBad cterm=underline ctermfg=9 ctermbg=0 gui=undercurl
+hi SpellBad cterm=underline guifg=#FAD000 gui=undercurl
hi SpellCap cterm=underline ctermfg=14 ctermbg=0 gui=undercurl
hi SpellRare cterm=underline ctermfg=13 ctermbg=0 gui=undercurl
hi SpellLocal cterm=underline ctermfg=11 ctermbg=0 gui=undercurl