Hi, This is great. I have been looking for this feature for a long time.
Regards, Yegappan On Sun, Oct 8, 2017 at 8:24 PM, haya14busa <[email protected]> wrote: > This patch supports highlighting all matched text while incremental > searching. > > By removing SEARCH_KEEP flag, command line text is stored as last regexp > pattern and used for 'hlsearch' feture while incremental searching. > > This patch is based on @itchyny <https://github.com/itchyny>'s patch1 > <https://groups.google.com/forum/#!searchin/vim_dev/incsearch%7Csort:relevance/vim_dev/zdp8W-6xUzg/PrqDpP7cilIJ>. > itchyny's patch didn't handle > cancelling incremental search by <Esc> or <C-c> and command line text is > stored as last pattern even if users cancell the search. > This patch fix this problem by store/restore the search pattern. > > Also, I added 'inchlsearch' ("inc"remental "hlsearch") option to turn > on/off this feature. > > I'm the author of https://github.com/haya14busa/incsearch.vim which > provide > similar functionality. > Actually, I'm satisfied with this plugin but I believe this feature is so > useful that it should be implemented with default vim :) > ------------------------------ > You can view, comment on, or merge this pull request online at: > > https://github.com/vim/vim/pull/2198 > Commit Summary > > - Implement incremental highlight search feature > - improve patch > - add test and fix impl for ctrl-g/t handling and called from user > functions > - up > - fix > - improve test > - move variable declaration > - move 'saved_last_search_spat' declaration > - fix if def > - rm testok > - fix style, if-def and update runtime files > - fix style > > File Changes > > - *M* runtime/doc/options.txt > <https://github.com/vim/vim/pull/2198/files#diff-0> (15) > - *M* runtime/doc/quickref.txt > <https://github.com/vim/vim/pull/2198/files#diff-1> (1) > - *M* runtime/optwin.vim > <https://github.com/vim/vim/pull/2198/files#diff-2> (2) > - *M* src/ex_getln.c > <https://github.com/vim/vim/pull/2198/files#diff-3> (17) > - *M* src/option.c <https://github.com/vim/vim/pull/2198/files#diff-4> > (3) > - *M* src/option.h <https://github.com/vim/vim/pull/2198/files#diff-5> > (1) > - *M* src/proto/search.pro > <https://github.com/vim/vim/pull/2198/files#diff-6> (2) > - *M* src/search.c <https://github.com/vim/vim/pull/2198/files#diff-7> > (43) > - *M* src/testdir/test_search.vim > <https://github.com/vim/vim/pull/2198/files#diff-8> (33) > > Patch Links: > > - https://github.com/vim/vim/pull/2198.patch > - https://github.com/vim/vim/pull/2198.diff > > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
