Re-arrange terminal detection and color settings
This commit is contained in:
parent
7809d62c35
commit
601431e733
1 changed files with 3 additions and 3 deletions
6
vimrc
6
vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue