From 601431e7331827c11f356b01fb8315553acb8dce Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 19 Jun 2019 09:51:00 +0100 Subject: [PATCH] Re-arrange terminal detection and color settings --- vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 10e4738..51a677a 100644 --- a/vimrc +++ b/vimrc @@ -95,12 +95,12 @@ if has("eval") " Disable vim-go warning on CentOS let g:go_version_warning = 0 " Set colour levels for different terminals. - if &term == "rxvt-unicode" + if &term == "xterm-256color" set t_Co=256 elseif &term == "xterm" set t_Co=256 - elseif &term == "linux" - set t_Co=16 + elseif &term == "rxvt-unicode" + set t_Co=256 else set t_Co=16 endif