Skip to content

vim: % does not work if cursor not on first character of multi-character "bracket" #23358

@withamoliver

Description

@withamoliver

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When using a language which has multi-character "brackets" (such as do/end in Elixir and other languages), % will take you from the start of the @open "bracket" to the end of the @close "bracket", but placing your cursor anywhere else in the "bracket" will not work.

In particular this means that you cannot use repeated % to repeatedly move between @open and @close "brackets".

Zed Version and System Specs

Zed: v0.169.2 (Zed)
OS: macOS 14.4.1
Memory: 32 GiB
Architecture: aarch64

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

If applicable, attach your Zed.log file to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:parity/vimFeedback for Vim parity featuresbugDEPRECATED label: use issue type 'Bug' instead

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions