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
"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 |