# vim: Add ZZ and ZQ \(\#2950\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e29ce489c8489ba286aa854b55bb9ee12ca27ced

Requested commit: e29ce489c8489ba286aa854b55bb9ee12ca27ced

Commit: e29ce489c8489ba286aa854b55bb9ee12ca27ced

Tree: 563fdea61451726995412c297ff132c2eb618226

Author: Conrad Irwin

Committer: GitHub

## Message

```
vim: Add ZZ and ZQ (#2950)

The major change here is a refactoring to allow controling the save
behaviour when closing items, which is pre-work needed for vim command
palette.

For zed-industries/community#1868

Release Notes:

- vim: Add `ZZ` and `ZQ` to close the current item.
([#1868](https://github.com/zed-industries/community/issues/1868))
```

## Parents

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

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

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