Improve terminal colour handling
This commit is contained in:
parent
d1a95a0107
commit
7ddeff0400
1 changed files with 9 additions and 7 deletions
10
vimrc
10
vimrc
|
@ -85,14 +85,16 @@ if has("eval")
|
|||
let g:netrw_liststyle=3
|
||||
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
|
||||
if $TERM !~# '^linux\|^Eterm'
|
||||
" Set colour levels for different terminals.
|
||||
if &term == "rxvt-unicode"
|
||||
set t_Co=256
|
||||
elseif &term == "xterm"
|
||||
set t_Co=256
|
||||
elseif &term == "linux"
|
||||
set t_Co=16
|
||||
else
|
||||
set t_Co=16
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
" =====================================================================
|
||||
|
|
Loading…
Reference in a new issue