srcery-vim


Ⅰ. 插件描述

Dark colorscheme for gvim and vim

Ⅱ. 基本信息

创建日期:  2016-06-09
使用用户:  83
Github星:  348
插件作者:  srcery-colors

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

logo

Build Status

Color scheme with clearly defined contrasting colors and a slightly earthy tone.

Requirements

GUI

You don’t need to do anything for this colorscheme to work in GVim or MacVim.

TUI

To use Srcery in the terminal you need to change your terminal emulator’s
so-called “ASCII” colors to the ones in the table below. There's a list of
terminal configurations in the
srcery-terminal repository.

TERMCOLNRHEXRGB
black0#1C1B1928, 27, 25
red1#EF2F27239, 47, 39
green2#519F5081, 159, 80
yellow3#FBB829251, 184, 41
blue4#2C78BF44, 120, 191
magenta5#E02C6D224, 44, 109
cyan6#0AAEB310, 174, 179
white7#D0BFA1208, 191, 161
brightblack8#918175145, 129, 117
brightred9#F75341247, 83, 65
brightgreen10#98BC37152, 188, 55
brightyellow11#FED06E254, 208, 110
brightblue12#68A8E4104, 168, 228
brightmagenta13#FF5C8F255, 92, 143
brightcyan14#53FDE983, 253, 233
brightwhite15#FCE8C3252, 232, 195
orange166#D75F00215, 95, 0
brightorange208#FF8700255, 135, 0
hard_black233#12121218, 18, 18
xgray1235#26262638, 38, 38
xgray2236#30303048, 48, 48
xgray3237#3A3A3A58, 58, 58
xgray4238#44444468, 68, 68
xgray5239#4E4E4E78, 78, 78
xgray6240#58585888, 88, 88

Installation

Manually

Put srcery.vim in ~/.vim/colors/ (on unix-like systems) or %userprofile%\vimfiles\colors\ (on Windows).

Vim 8

Vim 8 has native support for loading plugins. All you need to do to is to clone
this repository into ~/.vim/plug/default/opt.

git clone https://github.com/srcery-colors/srcery-vim ~/.vim/plug/default/opt

The same works for NeoVim, but you have to clone it into a path where NeoVim can
find it.

git clone https://github.com/srcery-colors/srcery-vim ~/.config/nvim/plug/default/opt

dein.vim

call dein#add('srcery-colors/srcery-vim')

vim-pathogen

cd ~/.vim/bundle
git clone https://github.com/srcery-colors/srcery-vim

vim-plug

Plug 'srcery-colors/srcery-vim'

Configuration

Srcery includes a few toggles due to discrepancies in the various setups possible.
To change any of these you'd put something like this in your .vimrc

let g:srcery_italic = 1

Make sure that you set these variables before assigning colorscheme.

g:srcery_bold

Enables bold text.
default: 1

g:srcery_italic

Enables italic text.
default: gui 1, term 0

g:srcery_transparent_background

Removes the background color in terminal.
This is a bit of an experimental option, and it cause issues in certain terminals.
default: 0

g:srcery_underline

Enables underlined text.
default: 1

g:srcery_undercurl

Enables undercurled text.
default: 1

g:srcery_inverse

Enables inverse colors.
default: 1

g:srcery_inverse_matches

Enables inverse search matches.
default: 0

g:srcery_inverse_match_paren

When enabled will inverse matching delimiters.

Works best with Rainbow parenthesis

default: 0

g:srcery_dim_lisp_paren

Dims lisp dialects delimiters to a fairly dark gray (xgray5 specifically)

default: 0

Usage

:color srcery

If you like what you see and decide to make srcery your default colorscheme, add the relevant line to your vimrc:

colorscheme srcery

Screenshots

viml, bash
viml_bash

clojure, elisp
lisp

c, rust
c_rust

python, js
py_js

git, terminal
py_js

Typeface used in screenshots is Iosevka

Plugin support

Lightline

lightline

Lightline colorscheme.
To use it, include 'srcery' value in lightline configuration, like so:

let g:lightline = {
      \ 'colorscheme': 'srcery',
      \ }

Airline

airline

Thanks to MindTooth, Srcery now includes an Airline theme.

Other

These don't require any additional configuration.

Plugin support is still a work in progress and more will come, if there is
anything missing that you'd like to add please open an issue and let me know.

Xterm colors

Srcery uses some [xterm 256
colors](https://en.wikipedia.org/wiki/Xterm#/media/File:Xterm_256color_chart.svg)
to pad out the color selection:

TERMCOLNRHEXRGB
orange202#FF5F00255, 95, 0
brightorange208#FF8700255, 135, 0
hard_black233#12121218, 18, 18
xgrey1235#26262638, 38, 38
xgrey2236#30303048, 48, 48
xgrey3237#3A3A3A58, 58, 58
xgrey4238#44444468, 68, 68
xgrey5239#4E4E4E78, 78, 78

Attribution

This project started as essentially a palette swap of
Gruvbox and all credit goes to the
maintainers of that fantastic color scheme. I wanted something a bit sharper, but
I loved the syntax color choices of Gruvbox. I also tried to make the theme as
simple to use as possible, which was inspired by
Flattened. Other themes that influenced
Srcery:

Troubleshooting

Colors don't look right

Ensure that 256 colors are enabled in vim by setting this option before setting the colorscheme.

set t_Co=256

24-bit color, tmux and Neovim

If you want to use GUI colors in terminal make sure that tmux pass
through 24-bit color codes. For example, if you use
Termite add it to the
terminal overrides setting:

set -ga terminal-overrides ",xterm-termite:Tc"

For other terminals, replace xterm-termite with the relevant
terminal type. (stored in $TERM).

See Arch wiki
and this issue.

Contributors

Extra

Emacs

Check out srcery-emacs

添加新评论