# Add a next_mode to vim::Paste instead of hard-coding Normal mode \(\#27897\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9949512b64ab2f472fc3426d853bc9bd0f6d94e2

Requested commit: 9949512b64ab2f472fc3426d853bc9bd0f6d94e2

Commit: 9949512b64ab2f472fc3426d853bc9bd0f6d94e2

Tree: 0d3245fa7f5a6023d478c832ec85fe63bbbfd87d

Author: jneem

Committer: GitHub

## Message

```
Add a next_mode to vim::Paste instead of hard-coding Normal mode (#27897)

This adds a `next_mode` parameter to the `vim::Paste` action. My main
use-case for this is for helix users, who will want to switch into
`HelixNormal` mode instead of `Normal` mode.

I'm not sure if this is the best approach -- another possibility would
be to have a global vim-vs-helix configuration, and then have every
invocation of "normal" mode choose vim or helix based on that global
configuration. But the approach in this PR is much less invasive.

Release Notes:

- vim: switch to the configured default mode after paste instead of
hard-coding Normal mode
```

## Parents

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

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