Created
October 2, 2013 15:00
-
-
Save morhetz/6795129 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! gruvbox#hls_show() | |
set hlsearch | |
call s:HL('Cursor', 'dark0', 'orange') | |
call s:HL('vCursor', 'dark0', 'orange') | |
call s:HL('iCursor', 'dark0', 'orange') | |
call s:HL('lCursor', 'dark0', 'orange') | |
endfunction | |
function! gruvbox#hls_hide() | |
set nohlsearch | |
call s:HL('Cursor', 'none', 'none', 'inverse') | |
call s:HL('vCursor', 'none', 'none', 'inverse') | |
call s:HL('iCursor', 'none', 'none', 'inverse') | |
call s:HL('lCursor', 'none', 'none', 'inverse') | |
endfunction | |
function! gruvbox#hls_toggle() | |
if &hlsearch | |
call gruvbox#hls_hide() | |
else | |
call gruvbox#hls_show() | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment