I'm familiar with iskeyword to define word boundaries. But there's also WORD and I don't know what the setting is for that. My goal is this: to delete words in a comma-seperate list flexibly. Example:
apple, banana, carrot, orange.
If I place my cursor at carrot and type daw
, I expect it to remove carrot,•
(space represented by the •
symbol). If I type diw
instead, I expect it to remove just carrot
. Is this possible?
I currently have set iskeyword-=,
but that makes both commands do the same thing, except one doesn't delete a space.
daW
gets you the desired behavior (note the capital). – Tumbler41 Feb 22 '17 at 19:58