# Vim search \*/\# without moving cursor initially \(\#46244\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1fb2922be3ace02b0c295f72d000b871a130a4d9

Requested commit: 1fb2922be3ace02b0c295f72d000b871a130a4d9

Commit: 1fb2922be3ace02b0c295f72d000b871a130a4d9

Tree: 51114566fec748d3832a3c64430a519de54496bb

Author: abdellah hariti

Committer: GitHub

## Message

```
Vim search */# without moving cursor initially (#46244)

The default behavior for Vim search with `*` and `#` in normal mode is
to initiate a search and immediately jump to the next or previous match
respectively.

This behavior can be annoying, so Vim has many plugins to address this
specifically:

- [vim-asterisk](https://github.com/haya14busa/vim-asterisk)
-
[vim-SearchHighlighting](https://github.com/inkarkat/vim-SearchHighlighting)
- [vim-tranquille](https://github.com/RRethy/vim-tranquille)

This PR tries to emulate this behavior natively keeping up with Zed's
sane defaults and deviating from vanilla Vim when it makes sense.


Release Notes:

- Vim: `*` and `#` search doesn't jump immediately to next / previous
search.
```

## Parents

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

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