Wednesday, June 11, 2014

Re: IncSearch not working in s/patt/repl/gc?

On Wednesday, June 11, 2014 12:51:52 PM UTC-5, Christian Brabandt wrote:
> Hi Benjamin!
>
>
>
> On Mi, 11 Jun 2014, Benjamin Fritz wrote:
>
>
>
> > I have these two lines in a modified "lithochromatic" colorscheme:
>
> >
>
> > highlight IncSearch ctermbg=NONE ctermfg=NONE guifg=NONE guibg=#f8f8f8
>
> > cterm=underline,bold gui=underline,italic
>
> > highlight Search ctermbg=NONE ctermfg=NONE guifg=NONE guibg=#d8d8d8
>
> > cterm=underline gui=underline
>
> >
>
> > In gvim 7.4.292 64-bit, on 64-bit Windows 7, when I do a
>
> > :'<,'>s/pattern/replacement/gc command, the active match (the one
>
> > which will be replaced depending on my answer to the prompt from 'c')
>
> > is getting the Search highlight instead of the IncSearch highlight.
>
> >
>
> > :help hl-IncSearch indicates that the IncSearch highlight should apply.
>
> >
>
> > Can anyone else confirm this behavior, or should I start digging into
>
> > my Vim config for more detail on root cause?
>
>
>
> I don't see this. Is perhaps something messing with your 'highlight'
>
> setting?
>

Nope, highlight is still set to default.

I just experimented with:

gvim -N -u NONE -i NONE
:set incsearch hlsearch

and this behavior goes away. But with my normal Vim config it happens. I guess I'll need to investigate more :-(

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: