# vim: Fix word object count multiplier \(2aw, 2iw\) \(\#45686\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4dd54c6742caf2ca6c5ffd1630efaeca2a0d51b4)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4dd54c6742caf2ca6c5ffd1630efaeca2a0d51b4

Requested commit: 4dd54c6742caf2ca6c5ffd1630efaeca2a0d51b4

Commit: 4dd54c6742caf2ca6c5ffd1630efaeca2a0d51b4

Tree: 34c198cf5fa423a2608db7185f76a69612c00e97

Author: Mateo Kruk

Committer: GitHub

## Message

```
vim: Fix word object count multiplier (2aw, 2iw) (#45686)

Closes #44251

## Context

Commands like `2daw` or `c2iw` were ignoring the count multiplier
because the word text object functions (`in_word`, `around_word`)
weren't using the `times` parameter. This fix propagates the count
through these functions so all operators correctly handle multiple
words.

## Before


https://github.com/user-attachments/assets/d5effa8a-4c04-4d70-a6b5-389cba730ca9

## After


https://github.com/user-attachments/assets/c50e4c0c-ea5c-4673-9c98-3d924b448025


Release Notes:

- Fixed vim mode count multiplier for word text objects (`2aw`, `2iw`,
`2aW`, `2iW`)
```

## Parents

- [32f71af03c7e193923e4c3e1489a9eaf0301e89b](https://git.cafe/gitcafe/zed/commit/32f71af03c7e193923e4c3e1489a9eaf0301e89b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4dd54c6742caf2ca6c5ffd1630efaeca2a0d51b4?format=markdown)
