On 25.02.15 10:32, Tim Chase wrote: > On 2015-02-25 08:02, FlashBurn wrote: > > I'm trying to understand the meaning of 'iskeyword' option but I > > can't figure out from the help what it does. Any help in finding > > out of the meaning of this option is greatly appreciated. > > 'isk' contains a list of characters (or character-ranges) for those > characters that should be considered a "word". This comes into play > when using "\<", "\>", "\k" and "\K" in a regular expression; what > gets considered when you use "*" and "#" to search; what the "iw" and > "aw" text-objects select; what's considered a "w"ord motion; how > abbreviations are found; and plenty of other places. > > For example, by default "-" isn't part of the 'isk' setting, but if > you wanted "vip" to highlight/select whole CSS selectors like > "background-color" > > :set isk+=- > > to add the dash. Now, if you do "viw" anywhere in the attribute, > it will highlight/select the entire "background-color" not just > "background" or "color".
That all seems to confirm that "iskeyword" is a misnomer for what in reality is "istoken", AFAICT. Not only is token boundary recognition the process described above, but the process in no way resembles detection of a member of a keyword set, like those use in 'C': "if", "switch", "case", etc. If it were "isword", rather than "iskeyword", then the name would also be truthful, and more easily understood, I guess. Erik -- Australia ranks 44th for average connection speed, according to The State of the Internet Report from cloud service provider Akamai. - http://www.abc.net.au/news/2015-02-09/remote-rural-australians-to-wait-another-year-for-fast-internet/6079476 -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
