The inner and outer word text objects in vim behave differently when combined with a count. Given the text (cursor is within the word first
)
first second third fourth
both y2iw
will put the first word in the register, y3iw
/y4iw
the first two word etc. So I need at least y7iw
to yank all four (inner) words. For outer words, the count given corresponds with the number of words yanked.
Why do two iw
objects correspond to a single word in this case, and can I get iw
to behave similar to aw
?