mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-15 14:53:46 -05:00
EasyMotion colors, and updating screenshots
This commit is contained in:
30
README.md
30
README.md
@@ -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
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### C
|
### Ligth mode
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Vim
|
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
|
||||||
|
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 (<256)
|
* Terminal low-color mode (<256)
|
||||||
* More fyletype specific highlighting
|
* More fyletype specific highlighting
|
||||||
* Customizable options (overrides, background switch, etc.)
|
* Customizable options (overrides, background switch, etc.)
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|
||||||
"}}}
|
" }}}
|
||||||
|
|||||||
Reference in New Issue
Block a user