From 3446151a59880832516dc0b7b07ce0d206a7e218 Mon Sep 17 00:00:00 2001 From: Pavel Pertsev Date: Tue, 8 Apr 2014 15:50:48 -0700 Subject: [PATCH] Updated Usage (markdown) --- Usage.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Usage.md b/Usage.md index ac81400..212694f 100644 --- a/Usage.md +++ b/Usage.md @@ -5,16 +5,14 @@ gruvbox comes in two modes, dark and light. To toggle between them just set back If you have [tpope's vim-unimpaired](https://github.com/tpope/vim-unimpaired) installed, 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: +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 somewhere _after_ unimpaired is loaded: - nnoremap :call gruvbox#hls_toggle() - inoremap :call gruvbox#hls_toggle()a - vnoremap :call gruvbox#hls_toggle()gv - - nnoremap :call gruvbox#hls_hide() + nnoremap [oh :call gruvbox#hls_show() + nnoremap ]oh :call gruvbox#hls_hide() + nnoremap coh :call gruvbox#hls_toggle() nnoremap * :let @/ = "":call gruvbox#hls_show()* nnoremap / :let @/ = "":call gruvbox#hls_show()/ nnoremap ? :let @/ = "":call gruvbox#hls_show()? -So you'll get `g:gruvbox_hls_cursor` (orange by default) cursor color when highlight search is on and inverted one otherwise. With such mappings you could also toggle search highlight on and off with and hide it with Enter. \ No newline at end of file +So you'll get `g:gruvbox_hls_cursor` (orange by default) cursor color when highlight search is on and inverted one otherwise. \ No newline at end of file