sponsor Vim development Vim logo Vim Book Ad

greens : A green/red/yellow colorscheme

 script karma  Rating 29/18, Downloaded by 3523  Comments, bugs, improvements  Vim wiki

created by
Yuheng Xie
 
script type
color scheme
 
description
A green/red/yellow colorscheme. It looks OK with light or dark background, 8 or 256 colors terminal or GUI vim. And diff mode colors are easy to discern.

Set background=light or dark in your .vimrc or from vim cmdline will cause greens.vim to reload colorscheme. If you find vim fails to detect your terminal background, you may use this trick.

And also, greens.vim will not change your terminal's background color, you should set bg color in your terminal settings.

Following are screenshots of urxvt-256color with light(yellow,white) and dark(black) background, editing C++ source code and python source code in diff mode.

http://elefant.name/files/greens-light.png
http://elefant.name/files/greens-diff-light.png
http://elefant.name/files/greens-diff-white.png
http://elefant.name/files/greens-dark.png
http://elefant.name/files/greens-diff-dark.png

Note for bold fonts: If your terminal doesn't display bold fonts well, or you just don't like bold fonts, you may edit greens.vim's function s:Style(style) as below (comment out any style, directly return ""):

function! s:Style(style)
" if &t_Co < 256
    return ""
" else
"   return "cterm=" . a:style . " gui=" . a:style
" endif
endfunction
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
greens.vim 2016.12.07 2017-11-21 6.0 Yuheng Xie trivally changed MatchParen's color
greens.vim 2016.12.07 2016-12-07 6.0 Yuheng Xie Make compatible with VIM 6.4
ip used for rating: 44.220.184.63

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github