From a8448908af0a5d0a1fa9007585effe76213b7aad Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 3 May 2017 10:08:52 +0100 Subject: [PATCH] Use 16-bit colours at 'linux' and 'Eterm' consoles --- vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 0aec693..f3571c9 100644 --- a/vimrc +++ b/vimrc @@ -87,8 +87,12 @@ if has("eval") let g:netrw_sort_sequence='[\/]$,*' let g:netrw_winsize=-28 " Use 256-color mode unless at the Linux console or in Eterm. - if &t_Co == 8 && $TERM !~# '^linux\|^Eterm' - set t_Co=256 + if &t_Co == 8 + if $TERM !~# '^linux\|^Eterm' + set t_Co=256 + else + set t_Co=16 + endif endif endif