Originally a fork of srcery-vim, I have done very little. All cred to my predecessors!
Put srcery.vim
in ~/.vim/colors/
(on unix-like systems) or %userprofile%\vimfiles\colors\
(on Windows).
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/korsbo/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/korsbo/srcery-vim ~/.config/nvim/plug/default/opt
call dein#add('korsbo/srcery-vim')
cd ~/.vim/bundle
git clone https://github.com/korsbo/srcery-vim
Plug 'korsbo/srcery-vim'
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
.
Enables bold text. default: 1
Enables italic text. default: gui 1, term 0
Removes the background color in terminal. This is a bit of an experimental option, and it cause issues in certain terminals. default: 0
Enables underlined text. default: 1
Enables undercurled text. default: 1
Enables inverse colors. default: 1
Enables inverse search matches. default: 0
When enabled will inverse matching delimiters.
Works best with Rainbow parenthesis
default: 0
Dims lisp dialects delimiters to a fairly dark gray (xgray5 specifically)
default: 0
: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
Typeface used in screenshots is Iosevka
Lightline colorscheme. To use it, include 'srcery' value in lightline configuration, like so:
let g:lightline = {
\ 'colorscheme': 'srcery',
\ }
Thanks to MindTooth, Srcery now includes an Airline theme.
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.
Srcery uses some xterm 256 colors to pad out the color selection:
TERMCOL | NR | HEX | RGB |
---|---|---|---|
orange | 202 | #FF5F00 | 255, 95, 0 |
brightorange | 208 | #FF8700 | 255, 135, 0 |
hard_black | 233 | #121212 | 18, 18, 18 |
xgrey1 | 235 | #262626 | 38, 38, 38 |
xgrey2 | 236 | #303030 | 48, 48, 48 |
xgrey3 | 237 | #3A3A3A | 58, 58, 58 |
xgrey4 | 238 | #444444 | 68, 68, 68 |
xgrey5 | 239 | #4E4E4E | 78, 78, 78 |
Ensure that 256 colors are enabled in vim by setting this option before setting the colorscheme.
set t_Co=256
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
).
Check out srcery-emacs