Improve terminal colour handling
This commit is contained in:
parent
d1a95a0107
commit
7ddeff0400
1 changed files with 9 additions and 7 deletions
16
vimrc
16
vimrc
|
@ -85,13 +85,15 @@ if has("eval")
|
||||||
let g:netrw_liststyle=3
|
let g:netrw_liststyle=3
|
||||||
let g:netrw_sort_sequence='[\/]$,*'
|
let g:netrw_sort_sequence='[\/]$,*'
|
||||||
let g:netrw_winsize=-28
|
let g:netrw_winsize=-28
|
||||||
" Use 256-color mode unless at the Linux console or in Eterm.
|
" Set colour levels for different terminals.
|
||||||
if &t_Co == 8
|
if &term == "rxvt-unicode"
|
||||||
if $TERM !~# '^linux\|^Eterm'
|
set t_Co=256
|
||||||
set t_Co=256
|
elseif &term == "xterm"
|
||||||
else
|
set t_Co=256
|
||||||
set t_Co=16
|
elseif &term == "linux"
|
||||||
endif
|
set t_Co=16
|
||||||
|
else
|
||||||
|
set t_Co=16
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue