" -----------------------------------------------------------------------------
" File: gruvbox.vim
" Description: Retro groove color scheme for Vim
" Author: morhetz <morhetz@gmail.com>
" Source: https://github.com/morhetz/gruvbox
" Last Modified: 12 Aug 2017
" -----------------------------------------------------------------------------
" Supporting code -------------------------------------------------------------
" Initialisation: {{{
if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif
let g:colors_name='gruvbox'
if !(has('termguicolors') && &termguicolors) && !has('gui_running') && &t_Co != 256
finish
endif
" }}}
" Global Settings: {{{
if !exists('g:gruvbox_bold')
let g:gruvbox_bold=1
endif
if !exists('g:gruvbox_italic')
if has('gui_running') || $TERM_ITALICS == 'true'
let g:gruvbox_italic=1
else
let g:gruvbox_italic=0
endif
endif
if !exists('g:gruvbox_undercurl')
let g:gruvbox_undercurl=1
endif
if !exists('g:gruvbox_underline')
let g:gruvbox_underline=1
endif
if !exists('g:gruvbox_inverse')
let g:gruvbox_inverse=1
endif
if !exists('g:gruvbox_guisp_fallback') || index(['fg', 'bg'], g:gruvbox_guisp_fallback) == -1
let g:gruvbox_guisp_fallback='NONE'
endif
if !exists('g:gruvbox_improved_strings')
let g:gruvbox_improved_strings=0
endif
if !exists('g:gruvbox_improved_warnings')
let g:gruvbox_improved_warnings=0
endif
if !exists('g:gruvbox_termcolors')
let g:gruvbox_termcolors=256
endif
if !exists('g:gruvbox_invert_indent_guides')
let g:gruvbox_invert_indent_guides=0
endif
if exists('g:gruvbox_contrast')
echo 'g:gruvbox_contrast is deprecated; use g:gruvbox_contrast_light and g:gruvbox_contrast_dark instead'
endif
if !exists('g:gruvbox_contrast_dark')
let g:gruvbox_contrast_dark='medium'
endif
if !exists('g:gruvbox_contrast_light')
let g:gruvbox_contrast_light='medium'
endif
let s:is_dark=(&background == 'dark')
" }}}
" Palette: {{{
" setup palette dictionary
let s:gb = {}
" fill it with absolute colors
let s:gb.dark0_hard = ['#1d2021', 234] " 29-32-33
let s:gb.dark0 = ['#282828', 235] " 40-40-40
let s:gb.dark0_soft = ['#32302f', 236] " 50-48-47
let s:gb.dark1 = ['#3c3836', 237] " 60-56-54
let s:gb.dark2 = ['#504945', 239] " 80-73-69
let s:gb.dark3 = ['#665c54', 241] " 102-92-84
let s:gb.dark4 = ['#7c6f64',