mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 07:13:46 -05:00
Updated Usage (markdown)
12
Usage.md
12
Usage.md
@@ -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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user