Vim icon indicating copy to clipboard operation
Vim copied to clipboard

`Vi{` incorrectly selects the line with the closing bracket

Open KnorpelSenf opened this issue 1 year ago • 8 comments

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)

KnorpelSenf avatar Oct 30 '24 12:10 KnorpelSenf