# Change behavior of search with vim mode enabled \(\#51073\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0b275eaa44c8bc789c8b3535826d950b61b13dbe

Requested commit: 0b275eaa44c8bc789c8b3535826d950b61b13dbe

Commit: 0b275eaa44c8bc789c8b3535826d950b61b13dbe

Tree: 2751eb37ce72eec9487caa692225ffee5c1b824b

Author: Vivek Jain

Committer: GitHub

## Message

```
Change behavior of search with vim mode enabled (#51073)

When vim mode is enabled, previously if Cmd-F (or platform equivalent)
was pressed, enter will go to the editor's first match, and then hitting
enter again goes to the next line rather than next match. This PR
changes it to make enter go to the next match, which matches the
convention in most other programs. The behavior when search is initiated
with / is left unchanged.

This is a reopen of #35157, rebased and fixed.
Closes #7692

Release Notes:

- In vim mode, when search is triggered by the non-vim mode shortcut
(cmd-f by default) enter will now behave as it does outside of vim mode.

---------

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

## Parents

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

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