Skip to content

Instantly share code, notes, and snippets.

@morhetz
Created October 2, 2013 15:00
Show Gist options
  • Save morhetz/6795129 to your computer and use it in GitHub Desktop.
Save morhetz/6795129 to your computer and use it in GitHub Desktop.
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