On Mon, Sep 26, 2022 at 8:38 AM Christian Brabandt <[email protected]>
wrote:

>
> On So, 25 Sep 2022, Dave McCooey wrote:
>
> > Hi Christian,
> >
> > The file with the problem is _vimrc itself, which is how I noticed it.
> >
> > Here is a line from my _vimrc that shows the problem:
> >
> > :hi Tab ctermbg=235\t" Grey19 = 0x303030
> >
> > The \t is really a single tab character.
> >
> > My assumption that _vimrc is an "rc" file appears to be wrong,
> > because if I copy _vimrc to xxx.rc, then xxx.rc does not have the
> problem.
>
> I have been digging around the vim syntax file a bit. At some point, the
> vimNumber syntax definition added the 'skipwhite' argument to it, which
> basically prevents that the whitespace after it can be matched by other
> syntax rules.
>
> In your case, I would change the BufWinEnter autocommand to a matchadd()
> function call like this:
>
> au BufWinEnter *.vim call matchadd('Tab', '\t')
>
> Then it should be working again.
>

Thanks for diagnosing the problem and for the work-around.

I had looked at matchadd() but was unsure about whether
clearmatches() needs to be called when leaving a window.
If I don't call it, then when I enter and leave a window repeatedly,
do the matches accumulate with repeated calls to matchadd()?

Best regards
Dave McCooey

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CANGAOmY1vs%2BbR2cspvi7qNJk_FdWBt5LTsAC9OBw%2BFrQWFbBrg%40mail.gmail.com.

Raspunde prin e-mail lui