Itchyny wrote:

> The option 'incsearch' just jumps to the first matching place and
> highlights it.
> We then press enter, all the matches are get highlighted (if we set
> hlsearch on).
> If Vim highlights all the matching strings, it would be nice.
> 
> There's already an implementation in Vim script
> (https://github.com/haya14busa/incsearch.vim).
> However, this plugin uses its own command-line like interface thus
> very limited and the code is too complicated.
> 
> If this feature will be implemented with a small patch, it would be
> nice and I hope it merged.
> 
> Here's a simple patch I wrote.
> I noticed that just removing the SEARCH_KEEP flag enables Vimt to
> highlight the
> matches while searching (search.c:L1149, ex_getln.c:L1795).
> Of course, as you notice, the following patch overwrites the default behavior
> and it must be fixed if the feature will be merged to Vim.
> Does anyone get interested in implementing the followings?
>   - new option ('incsearchhlall' or something like that)to highlight
>     all the matches 
>     while searching (disabled by default)
>   - related documents and helps

We need different highlighting for the matches other than the one that
the cursor would jump to.  If that's different enough then I don't think
we need yet-another-option.  At least for me the search highlighting and
the incsearch match highlighting are very different.


-- 
hundred-and-one symptoms of being an internet addict:
191. You rate eating establishments not by the quality of the food,
     but by the availability of electrical outlets for your PowerBook.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Raspunde prin e-mail lui