From 1ded0010bf4dec44ccb5ed06d6a7bcad87ce2512 Mon Sep 17 00:00:00 2001 From: Pavel Pertsev Date: Tue, 8 Apr 2014 15:27:20 -0700 Subject: [PATCH] Updated Usage (markdown) --- Usage.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Usage.md b/Usage.md index d9f3b5f..3c778f1 100644 --- a/Usage.md +++ b/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 :call gruvbox#bg_toggle() - imap :call gruvbox#bg_toggle()a - vmap :call gruvbox#bg_toggle()gv + set background=dark " Setting dark mode + set background=light " Setting light mode -Just setting background to an appropriate value would work as well: - - set bg=dark " Setting dark mode - set bg=light " Setting light mode +If you have [vim-unimpaired](https://github.com/tpope/vim-unimpaired), you could easily switch with `cob` mapping. 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: