Exempt Eterm from t_Co=16

Closes https://github.com/tpope/vim-sensible/issues/101.
This commit is contained in:
Tim Pope
2015-09-23 13:58:01 -04:00
parent d0beb8ab42
commit 027b2390e1

View File

@@ -30,7 +30,7 @@ set ttimeoutlen=100
set incsearch
" Use <C-L> to clear the highlighting of :set hlsearch.
if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
nnoremap <silent> <C-L> :nohlsearch<C-R>has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
endif
set laststatus=2
@@ -81,7 +81,7 @@ endif
set sessionoptions-=options
" Allow color schemes to do bright colors without forcing bold.
if &t_Co == 8 && $TERM !~# '^linux'
if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
set t_Co=16
endif