EasyMotion colors, and updating screenshots

This commit is contained in:
morhetz
2012-12-06 03:04:11 +00:00
parent b276062f4f
commit 9fe0dcae6b
2 changed files with 166 additions and 134 deletions

View File

@@ -14,24 +14,38 @@ Designed as a bright theme with pastel 'retro groove' colors and light/dark mode
Screenshots Screenshots
----------- -----------
Colorscheme is in early development stage, so this could serve as working preview. Color scheme is in early development stage, so this could serve as working preview.
### Ruby ### Dark mode
![Screenshot](http://i.imgur.com/as2Tr.png) ![Screenshot](http://i.imgur.com/2870c.png)
### C ### Ligth mode
![Screenshot](http://i.imgur.com/rvCBM.png) ![Screenshot](http://i.imgur.com/oS9I3.png)
### Vim Usage
-----
![Screenshot](http://i.imgur.com/SeSHg.png) 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
endfunc
Just setting background to an appropriate value would work as well
set bg=dark " Setting dark mode
set bg=light " Setting light mode
ToDo ToDo
---- ----
* Light mode
* Terminal low-color mode (&lt;256) * Terminal low-color mode (&lt;256)
* More fyletype specific highlighting * More fyletype specific highlighting
* Customizable options (overrides, background switch, etc.) * Customizable options (overrides, background switch, etc.)

View File

@@ -1,4 +1,12 @@
" Supporting code -------------------------------------------------------------- " -----------------------------------------------------------------------------
" File: gruvbox.vim
" Description: Retro groove color scheme for Vim
" Author: morhetz <morhetz@gmail.com>
" Source: https://github.com/morhetz/gruvbox
" Last Modified: 6 Dec 2012
" -----------------------------------------------------------------------------
" Supporting code -------------------------------------------------------------
" Initialisation {{{ " Initialisation {{{
"set background=dark "set background=dark
@@ -18,7 +26,7 @@ let g:colors_name="gruvbox"
""" else """ else
""" let s:low_color = 1 """ let s:low_color = 1
""" endif """ endif
"}}} " }}}
if !has("gui_running") && &t_Co != 88 && &t_Co != 256 if !has("gui_running") && &t_Co != 88 && &t_Co != 256
finish finish
@@ -75,8 +83,9 @@ else
let s:gb.purple = ['8f3f71', 175] let s:gb.purple = ['8f3f71', 175]
endif endif
"}}} " }}}
" Highlighting Function {{{ " Highlighting Function {{{
function! s:HL(group, fg, ...) function! s:HL(group, fg, ...)
" Arguments: group, guifg, guibg, gui, guisp " Arguments: group, guifg, guibg, gui, guisp
@@ -131,9 +140,10 @@ function! s:HL(group, fg, ...)
execute histring execute histring
endfunction endfunction
" }}} " }}}
" Actual colorscheme ----------------------------------------------------------- " Actual colorscheme ----------------------------------------------------------
" Vanilla Vim {{{ " Vanilla Vim {{{
" General/UI {{{ " General/UI {{{
@@ -337,8 +347,16 @@ endif
" }}} " }}}
" Plugin specific -------------------------------------------------------------
" EasyMotion {{{
hi! def link EasyMotionTarget Search
hi! def link EasyMotionShade Comment
" }}}
" Filetype specific ----------------------------------------------------------- " Filetype specific -----------------------------------------------------------
"{{{ Diff " Diff {{{
call s:HL('diffAdded', 'green') call s:HL('diffAdded', 'green')
call s:HL('diffRemoved', 'red') call s:HL('diffRemoved', 'red')
@@ -349,4 +367,4 @@ call s:HL('diffNewFile', 'yellow')
call s:HL('diffLine', 'blue') call s:HL('diffLine', 'blue')
"}}} " }}}