On Nov 9, 6:39 pm, StarWing <[EMAIL PROTECTED]> wrote: > On 11月10日, 上午10时51分, "Charles E. Campbell, Jr."<[EMAIL PROTECTED]> wrote: > > Britton Kerin wrote: > > :help guioptions > > > (in particular, you probably want :set guioptions+=r) > > i just tried, but failed. se go+=r no response. and se go-=L just > remove the scrollbar at left, not add a scrollbar at right. > > > 3. Incremental searchhighlightingandfolding(vimfolding > > support is *wonderful*) seem to interract badly: the screen > > state when the current search match is inside a fold seems > > identical to what you get when the match is failing. Is > > there some option that affects this? Ideally the fold line > > would be highlighted, but a little error message at the > > bottom showing "Failing Isearch" or the like would at least > > disambiguate the cases. > > you can just hit enter, and will find fold opend automatically. if > can't find, you can press '/',and then press <up> continue your > search. i think it's good enough.
It seems like a bug to me. The whole point of incremental highlight is that you get immediate visual feedback on the state of the search, when the result is in a fold the visual feedback in mostly ambiguous. Admittedly the screen will probably scroll when the search match first falls into the fold, but after this their is no ongoing difference between a failing search. Additionally, the scroll only happens on the first character of the match in the fold. To get maximum feedback without opening the fold, you could reverse video the first n chars of the fold text line, where n is the number of chars in the incremental searh. Or just reverse video the full fold line while the match is in it. It seems to me what is needed is a highlight group "IncSearchInFold" or "FoldedIncSearch" or the like and whatever internal machinery vim uses to divide the on screen text into groups. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
