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