# Fix vim selection to include entire range \(\#2787\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 404b1aa65a0a3647c7c0affacf9fabb88db70336

Requested commit: 404b1aa65a0a3647c7c0affacf9fabb88db70336

Commit: 404b1aa65a0a3647c7c0affacf9fabb88db70336

Tree: 6c2123e9a69b965c4737dc2c339bd3599b591de2

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix vim selection to include entire range (#2787)

Update vim mode to have vim selection and editor selections match.
Before this we had to adjust between vim selections and real selections
when making changes; now we have to adjust when making selections.

Release Notes:

- vim: Ensure editor selection matches the vim selection
([#1796](https://github.com/zed-industries/community/issues/1796)).
- vim: Fix `s` in visual line mode
- vim: Add `o` and `shift-o` to toggle direction of visual selection
- vim: Fix `v` and `shift-v` to toggle back to normal mode
- vim: Fix block selections like `vi}` to contain correct whitespace
```

## Parents

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

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

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