Skip to content

Vim matching command (%) does not go to the correct matching character  #5800

@FlorentCollin

Description

@FlorentCollin

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

The vim matching command (executed when pressing % in vim normal mode) does not go to the matching character.
For example, if the following text is in a buffer {()}, pressing % when the cursor is on the right curly bracket } put the cursor to the left parenthesis ( .

Moreover, pressing % in an untitled buffer does nothing.

Expected behavior

The vim matching command should put the cursor to the correct matching character and should also work in an untitled buffer.

Environment

Zed 0.63.4 – /Applications/Zed.app
macOS 12.6
architecture arm64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue

No response

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