# vim: Prevent around word operations from selecting indentation \(\#24635\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0a146793ea48a62cf9b104c6640095307d41bdb7

Requested commit: 0a146793ea48a62cf9b104c6640095307d41bdb7

Commit: 0a146793ea48a62cf9b104c6640095307d41bdb7

Tree: c93e8938209e6aa75e3490a580ffb20fd03083db

Author: 5brian

Committer: GitHub

## Message

```
vim: Prevent around word operations from selecting indentation (#24635)

Closes https://github.com/zed-industries/zed/issues/15323

Changes:
Added check for first word on line

Tested `v/c/d/y aw`. Matches standard neovim.

|initial|old|new|
|---|---|---|

|![image](https://github.com/user-attachments/assets/725b74e6-3aa0-40dc-9fd2-4d2b593e9926)|![image](https://github.com/user-attachments/assets/eeebd267-b4c6-4ea6-bb9a-fb913614754c)|![image](https://github.com/user-attachments/assets/fb695e54-b4c2-44a6-a588-909c1fd415e0)



Release Notes:

- vim: Prevent around word operations from selecting indentation
```

## Parents

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

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