Skip to content

Instantly share code, notes, and snippets.

View orange-tangerine's full-sized avatar

orange-tangerine

View GitHub Profile
@orange-tangerine
orange-tangerine / Vimscript search flicker
Created November 2, 2013 14:57
Vimscript function to make searching slightly more visible
"remap the searching commands to my new function. The function is called first, then immediately calls itself
"after the search is finished. This allows me to get the advantage of incsearch being unimpeded by anything
noremap <space> :call DoSearch('search')<Cr>/
noremap n :call DoSearch('search')<Cr>n
noremap N :call DoSearch('search')<Cr>N
noremap * :call DoSearch('search')<Cr>*
noremap # :call DoSearch('search')<Cr>#
noremap ? :call DoSearch('search')<Cr>?
"DoSearch takes a 'command' that specifies whether it needs to call itself again after exeution