greens


Ⅰ. 插件描述

A green/red/yellow colorscheme

Ⅱ. 基本信息

创建日期:  2007-01-29
使用用户:  1
Github星:  1
插件作者:  Yuheng Xie

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/greens'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/greens'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/greens'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/greens

Ⅳ. 文档说明

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

添加新评论