Skip to content

An earthy, mid-dark colorscheme for vim GUI, neovim, and truecolor terminals

License

Notifications You must be signed in to change notification settings

sapphirecat/garden-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

garden-vim

An earthy, mid-dark colorscheme for vim GUI, neovim, and truecolor terminals.

Requirements

For best results: GVim, graphical neovim, or a truecolor terminal with set termguicolors applied before using colorscheme garden.

Possible, but not recommended: a 256-color terminal. Due to palette limitations, several colors are gray, including the background.

88- and 16-color terminals are not supported. These will appear as vim’s default theme in dark mode.

Installation

Use it as sapphirecat/garden-vim with vim-plug or your favorite package manager; or, install the repository as a Vim8 package. Choose your own adventure out there!

After installing, activate it with the :colorscheme garden command. There is no configuration specific to this scheme.

Features

Usage with Rainbow

Set the g:rainbow_active variable before using :colorscheme, and Garden will define rainbow colors (if not already defined.)

That is, in your vimrc (example using vim-plug as plugin manager):

    call plug#begin()
        " any order acceptable
        Plug 'sapphirecat/garden-vim'
        Plug 'luochen1990/rainbow'
    call plug#end()

    " must use this ordering
    let g:rainbow_active=0
    colorscheme garden

The result is that :RainbowToggle will activate rainbow, with Garden’s colors. If you define your own g:rainbow_conf.guifgs etc. before calling colorscheme garden, then your colors will be respected:

    let g:rainbow_active=1
    let g:rainbow_conf = {'guifgs': ['black', 'red', 'green', 'gold']}
    colorscheme garden

Usage in Terminals

If you only use truecolor terminals, as listed on termstandard/colors, then add this to your vimrc to have themes use (truecolor) GUI colors in your terminal:

    if !has('gui_running') && exists('&termguicolors')
        set termguicolors
    endif

Alternatively, you can use a different color scheme in terminals:

    if has('gui_running')
        colorscheme garden
    else
        colorscheme desert
    endif

Screenshots

PHP code

Multi window view

Inspiration

I wanted to experiment with pastels on a not-too-deep background. Green was kind of a random choice; the “Garden” concept defined a palette from there.

The only conceptually nearby schemes I was able to find were:

Garden is very warm, and definitely not light.

License

MIT.

About

An earthy, mid-dark colorscheme for vim GUI, neovim, and truecolor terminals

Topics

Resources

License

Stars

Watchers

Forks