Wednesday, December 31, 2014

Re: Which chars can't be removed from keyword list

Hi Nick!

On Di, 30 Dez 2014, Nick Gieschen wrote:

> If I try set iskeyword-=a it doesn't actually work. That is, the char a is still seen as part of a word. Can someone tell me the rules for what chars cannot be removed from the keyword list?

Check the actual setting of your 'isk'. It probably looks like this:
@,48-57,_,192-255

Note, the '@' which means all alphanumeric characters. Therefore,
issuing :set isk-=a won't work (since the 'a' is not included, it can't
be removed). To explicitly remove the 'a', use :set isk+=^a

Read the gory details of the syntax at :h 'isfname'

Please also note, that changing this option is not advised and even if
you do it, you should probably only change it for the current buffer,
e.g. use :setlocal instead of :set.

Best,
Christian
--
Wie man sein Kind nicht nennen sollte:
Pia Nist

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment