# Extend Vim default keybindings \(\#10461\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bc0c2e0cae1ef39f58460ae256e3f2510bd3f46c

Requested commit: bc0c2e0cae1ef39f58460ae256e3f2510bd3f46c

Commit: bc0c2e0cae1ef39f58460ae256e3f2510bd3f46c

Tree: c28a676de8076e1335a52a858ee0d8554b5ee524

Author: Thorsten Ball

Committer: GitHub

## Message

```
Extend Vim default keybindings (#10461)

This implements some of #10457.

Release notes:

- Added `g c c` and `g c` to Vim keybindings to toggle comments in
normal and visual mode respectively.
- Added `g ]` and `g [` to Vim keybindings to go to next and previous
diagnostic error.
- Changed `[ x` and `] x` (which select larger/smaller syntax node) in
Vim mode to also work in visual mode.
```

## Parents

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

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