Skip to content

Commit

Permalink
Version 3.4
Browse files Browse the repository at this point in the history
For light-background terminal we always assume 256color support.
Transparency is supported in 256color mode, search the text "transparency" in peaksea.vim for details.
  • Loading branch information
pansz authored and vim-scripts committed Oct 18, 2010
1 parent 407e10d commit be5fb8e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions colors/peaksea.vim
@@ -1,8 +1,8 @@
" Vim color file --- psc (peak sea color) "Lite version"
" Maintainer: Pan, Shi Zhu <Go to the following URL for my email>
" URL: http://vim.sourceforge.net/scripts/script.php?script_id=760
" Last Change: 31 Oct 2008
" Version: 3.3
" Last Change: 5 Feb 2010
" Version: 3.4
"
" Comments and e-mails are welcomed, thanks.
"
Expand All @@ -16,9 +16,8 @@
" Note: Please set the background option in your .vimrc and/or .gvimrc
"
" It is much better *not* to set 'background' option inside
" a colorscheme file. because ":set background" inside a colorscheme
" may cause colorscheme be sourced twice or in the worst case result an
" infinite loop.
" a colorscheme file. because ":set background" improperly
" may cause colorscheme be sourced twice
"
" Color Scheme Overview:
" :ru syntax/hitest.vim
Expand Down Expand Up @@ -149,6 +148,11 @@ if &background=='light'

" gui define for background=light end here

" generally, a dumb terminal is dark, we assume the light terminal has 256
" color support.
if &t_Co==8 || &t_Co==16
set t_Co=256
endif
if &t_Co==256
" 256color light terminal support here

Expand Down Expand Up @@ -248,7 +252,7 @@ if &background=='light'
hi ModeMsg cterm=bold
hi TabLineSel cterm=bold

hi lCursor ctermfg=bg ctermbg=fg cterm=NONE
"hi lCursor ctermfg=bg ctermbg=fg cterm=NONE
endif " t_Co==256
" }}}2
elseif &background=='dark'
Expand Down

0 comments on commit be5fb8e

Please sign in to comment.