The pattern \<@ does not make sense with the default setting of the iskeyword
option, \< matches the beginning of a word, but @ is not a word character, so
it shouldn't match anything. If I
set isk+=@-@
then the last line is matched. Maybe the use of @ in iskeyword has mislead
you; it do
Argh, apologies, that didn't come out right. Let me try again.
If I have these lines on screen:
abc
> abcd
> @abc
>
..and I type:
:call matchadd('Identifier', '\')
This causes the bolded bits to be colorized, as expected:
*abc*
> abcd
> @*abc*
>
However, if I instead type:
:call matchadd('I
Dear vim devs,
I just noticed that this colorizes:
:call matchadd('Identifier', '\<@abc\>')
But this doesn't:
:call matchadd('Identifier', '\<@abc\>')
Is there a reason for this? I've tested it without any startup files on 7.3
(patches 1-1302) on linux, with a file containing the following:
a