# Don't toggle WHOLE_WORD in vim search \(\#4165\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 137e2198307599538be434113c5b3641c548ef7b

Requested commit: 137e2198307599538be434113c5b3641c548ef7b

Commit: 137e2198307599538be434113c5b3641c548ef7b

Tree: 07b35d8e91542c498816383826d44c845a5779e4

Author: Conrad Irwin

Committer: GitHub

## Message

```
Don't toggle WHOLE_WORD in vim search (#4165)

Fixes */# in visual mode, and avoids setting up irritating state.

[[PR Description]]

Release Notes:

- vim: Improved `*` and `#` to not toggle Zed's search state. Instead we
now use the regex to identify start and end of words (more like vim).
```

## Parents

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

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

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