Updated Usage (markdown)

Pavel Pertsev
2014-04-08 15:27:20 -07:00
parent 83dddf3c58
commit 1ded0010bf

@@ -1,13 +1,9 @@
gruvbox comes in two modes, dark and light. To toggle between them with F5 you can add these to your .vimrc: gruvbox comes in two modes, dark and light. To toggle between them just set background to an appropriate value:
map <silent> <F5> :call gruvbox#bg_toggle()<CR> set background=dark " Setting dark mode
imap <silent> <F5> <ESC>:call gruvbox#bg_toggle()<CR>a set background=light " Setting light mode
vmap <silent> <F5> <ESC>:call gruvbox#bg_toggle()<CR>gv
Just setting background to an appropriate value would work as well: If you have [vim-unimpaired](https://github.com/tpope/vim-unimpaired), you could easily switch with `cob` mapping.
set bg=dark " Setting dark mode
set bg=light " Setting light mode
Since gruvbox inverts cursor color, it could be awkward to determine current position, when the search is highlighted. To get single cursor color while searching, map these gruvbox functions same way: Since gruvbox inverts cursor color, it could be awkward to determine current position, when the search is highlighted. To get single cursor color while searching, map these gruvbox functions same way: