Re-arrange terminal detection and color settings

This commit is contained in:
Anthony Rose 2019-06-19 09:51:00 +01:00
parent 7809d62c35
commit 601431e733

6
vimrc
View file

@ -95,12 +95,12 @@ if has("eval")
" Disable vim-go warning on CentOS " Disable vim-go warning on CentOS
let g:go_version_warning = 0 let g:go_version_warning = 0
" Set colour levels for different terminals. " Set colour levels for different terminals.
if &term == "rxvt-unicode" if &term == "xterm-256color"
set t_Co=256 set t_Co=256
elseif &term == "xterm" elseif &term == "xterm"
set t_Co=256 set t_Co=256
elseif &term == "linux" elseif &term == "rxvt-unicode"
set t_Co=16 set t_Co=256
else else
set t_Co=16 set t_Co=16
endif endif