iskeyword and '@'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

iskeyword and '@'

Yongwei Wu
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/

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADs46ieCEmgfviOQh%3D_RZz19zr1zBONPNBbgjmEpu8AvPWPWtQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: iskeyword and '@'

Christian Brabandt
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

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200507085023.GF23589%40256bit.org.
Reply | Threaded
Open this post in threaded view
|

Re: iskeyword and '@'

Yongwei Wu
On Thu, 7 May 2020 at 16:50, Christian Brabandt <[hidden email]> 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!

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

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADs46if5ZmBdKN7xk9L2-YZqFwOhFY%3D_G0gy2_BDT93qozUR%3DA%40mail.gmail.com.