Trey Mack
Trey Mack

Reputation: 4725

w / b in vim is including . in the word

It seems like vim's concept of word changed in the last couple of days for me. I've installed some plugins .. CtrlP is the latest, but I'd be surprised if it was the cause.

obj.prop

it's treating that as 1 word (also WORD, but that's good) when i use either w or b. I've checked out :map and I don't see anything suspicious in there.

Oh man I thought I just had it with 'iskeyword', but:

:set iskeyword? response:

:set iskeyword? response

Any ideas what could cause this behavior? Or suggestions to troubleshoot?

Upvotes: 2

Views: 76

Answers (1)

Mark Wilkins
Mark Wilkins

Reputation: 41252

I think it is indeed the iskeyword setting. That . on the end appears to be the problem. It currently indicates that . is a valid character in a "word". Try changing it to:

:set iskeyword=@,48-57,_,192-255,$,-,#

Upvotes: 2

Related Questions