Daniel Hahler c18437be94 Fix GNU screen detection for *-bce
Also use POSIX shell syntax: lighter and the script might be sourced.

Ref: https://github.com/morhetz/gruvbox/issues/4
2013-12-09 09:50:32 +01:00
2013-12-09 09:08:37 +04:00

gruvbox

Retro groove color scheme for Vim.

Gruvbox is heavily inspired by badwolf, jellybeans and solarized.

Designed as a bright theme with pastel 'retro groove' colors and light/dark mode switching in the way of solarized. The main focus when developing Gruvbox is to keep colors easily distinguishable, contrast enough and still pleasant for the eyes.

Screenshots

Color scheme is in early development stage, so this could serve as working preview.

Dark mode

Screenshot

Light mode

Screenshot

Features

Usage

gruvbox comes in two modes, dark and light. To toggle between them with F5 you can add these to your .vimrc:

map <F5> :call ToggleBg()<CR>
function! ToggleBg()
	if &background == 'dark'
		set bg=light
	else
		set bg=dark
	endif

	colo gruvbox
endfunc

Just setting background to an appropriate value would work as well:

set bg=dark    " Setting dark mode
set bg=light   " Setting light mode

Inverted cursor (...).

Terminal-specific

TBD.

  • (Recommended) 256-color pallette with gruvbox-palette shell-script
  • 16 colors palette mode with gruvbox terminal colorscheme

Troubleshooting

Italics gets inverted (terminal)

(...).

Effect of gruvbox_256palette.sh gets reset on Alt-Tab

That's known issue with Ubuntu GTK-themes. Refer for more details. Known affected terms are Gnome Terminal, Terminator and Lilyterm (though with Lilyterm option 'Dim text when inactive' set off everything is fine).

Lighter colors with iTerm2

(...). Refer and for more details.

Configuration

g:gruvbox_bold

(...). default: 1

g:gruvbox_italic

(...). default: 1

g:gruvbox_underline

(...). default: 1

g:gruvbox_undercurl

(...). default: 1

g:gruvbox_termcolors

(...). default: 256

g:gruvbox_hls_cursor

(...). default: orange

g:gruvbox_sign_column

(...). default: dark1

g:gruvbox_italicize_comments

(...). default: 1

g:gruvbox_italicize_strings

(...). default: 0

g:gruvbox_invert_selection

(...). default: 1

g:gruvbox_invert_signs

(...). default: 0

g:gruvbox_invert_indent_guides

(...). default: 0

Contributions

(...).

ToDo

  • More fyletype specific highlighting (ruby, python, javascript, coffeescript)
  • Airline theme

License

MIT/X11

Description
Retro groove color scheme for Vim
Readme 14 MiB
Languages
Vim Script 86.6%
Shell 13.4%