Skip to content

Vi{ incorrectly selects the line with the closing bracket #9337

@KnorpelSenf

Description

@KnorpelSenf

Description

In Vim, you can do Vi{ (visual line inside block) to select all lines inside the block but not the lines that contain { and }.

This plugin incorrectly selects the line with the closing bracket.

Reproduction

Write the following text.

Begin
{
  Block A
  Block B

  Block C
}
End

Move the cursor to any line inside the block, such as the empty line, and press Vi{.

Expected

Only

  Block A
  Block B

  Block C

are selected.

Actual

The closing bracket is highlighted, too, so the following text ends up in the selection.

  Block A
  Block B

  Block C
}

grafik

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.28.1
  • VSCode version: 1.95.0
  • OS: Debian 12 (bookworm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions