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,
Chris
--
Wer sich frei entfalten will, muß viele Ratschläge in den Wind
schlagen können.
-- Werner Mitsch
--
--
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/20220926133823.GB1155360%40256bit.org.