iskeyword and '@'

7 views
Skip to first unread message

Yongwei Wu

unread,
May 7, 2020, 4:44:57 AM5/7/20
to vim...@googlegroups.com
I am trying to include the '@' character into the iskeyword option (MASM uses '@' in identifiers). However, ":setlocal iskeyword=@,48-57,_,36,60,62,63,64" does not seem to have effect. Is it a bug, or did I miss something?

Best regards,

Yongwei

--
Yongwei Wu
URL: http://wyw.dcweb.cn/

Christian Brabandt

unread,
May 7, 2020, 4:50:32 AM5/7/20
to vim...@googlegroups.com
On Do, 07 Mai 2020, Yongwei Wu wrote:

> I am trying to include the '@' character into the iskeyword option (MASM uses '@' in identifiers). However,
> ":setlocal iskeyword=@,48-57,_,36,60,62,63,64" does not seem to have effect. Is it a bug, or did I miss something?

The @ has a special meaning. I think you need something like
`:setl isk+=@-@`

See :h 'isfname' where this is explained.

Best,
Christian
--
Die größte und dauerhafteste Revolution, die wir kennen, fand statt,
als der Mensch seine Seele entdeckte und lernte, daß jede Seele für
sich allein einen individuellen Wert hat.
-- John Ernst Steinbeck

Yongwei Wu

unread,
May 7, 2020, 5:06:55 AM5/7/20
to vim...@googlegroups.com
On Thu, 7 May 2020 at 16:50, Christian Brabandt <cbl...@256bit.org> wrote:
On Do, 07 Mai 2020, Yongwei Wu wrote:

> I am trying to include the '@' character into the iskeyword option (MASM uses '@' in identifiers). However,
> ":setlocal iskeyword=@,48-57,_,36,60,62,63,64" does not seem to have effect. Is it a bug, or did I miss something?

The @ has a special meaning. I think you need something like
`:setl isk+=@-@`

See :h 'isfname'  where this is explained.

What puzzled me was that `64` did not work. Good to know/see that `@-@` does the trick. Thanks!

--
Reply all
Reply to author
Forward
0 new messages