# vim: Fix % not working for multi-char bracket pairs \(\#23471\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 706e46c3ff4aba8c14cc69c1384d1cc986cde70e

Requested commit: 706e46c3ff4aba8c14cc69c1384d1cc986cde70e

Commit: 706e46c3ff4aba8c14cc69c1384d1cc986cde70e

Tree: 046ee11235f92faa6106c99a293324590e72327f

Author: Thorsten Ball

Committer: GitHub

## Message

```
vim: Fix % not working for multi-char bracket pairs (#23471)

Closes #23358

Demo/proof:


https://github.com/user-attachments/assets/2036d183-8830-415b-9155-0d3efe3d824c




Release Notes:

- Fixed `%` in Vim mode not working correctly for multi-char brackets,
such as `do/end` in Elixir or `\begin` and `\end` in LaTeX.

Co-authored-by: Conrad <conrad@zed.dev>
```

## Parents

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

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