# Add support for u and U in vim visual mode \(\#6948\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4ab1d8af6224f1972ac3d1e5fd877dbc33023d51

Requested commit: 4ab1d8af6224f1972ac3d1e5fd877dbc33023d51

Commit: 4ab1d8af6224f1972ac3d1e5fd877dbc33023d51

Tree: 6cf24d5f836071266079825728b6a6ffe324912b

Author: Conrad Irwin

Committer: GitHub

## Message

```
Add support for u and U in vim visual mode (#6948)

This pull request adds support for upper / lower casing a visual
selection with `u` or `U` respectively, and resolves #6901.

I took an approach to split out the logic of the existing `ChangeCase`
action into something that could be reused for the two new actions. One
area that I could use feedback on is whether or not vim binding updates
make sense. Judging purely from the way things work from a clean install
of Vim / Neovim, I'm pretty sure that it's a bug that `u` applies an
undo in visual mode, so I think it's safe to make this change, but it
changes a behavior that some users may be used to by now in Zed.

Release Notes:

- Added support for `u` and `U` in Vim visual mode
([#6901](https://github.com/zed-industries/zed/issues/6901)).
```

## Parents

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

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

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