# vim: Fix escape key switching back to default mode instead of normal mode \(\#31843\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ab189b898ddbfddb28af80ee72b97ad22c4628b0

Requested commit: ab189b898ddbfddb28af80ee72b97ad22c4628b0

Commit: ab189b898ddbfddb28af80ee72b97ad22c4628b0

Tree: 241afad66727fda9c9c02e7ecc4414da057ad698

Author: Sanjeev Shrestha

Committer: GitHub

## Message

```
vim: Fix escape key switching back to default mode instead of normal mode (#31843)

Closes #31728

This PR introduced new setting `"helix_mode"`. Enabling which will
enable the `vim_mode` along with `helix` behavior.

This solves issue where `vim`'s `default_mode` was being used to switch
between mode instead of opening in `default_mode`.

When `helix_mode` is enabled switcing to `Normal mode` will now switch
to `HelixNormal`


Release Notes:

- Fixed - escape key not switching to normal mode when default_mode is
insert
- Added - `helix_mode` setting to enable/disable helix key bindings

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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