Vim: va{ & va} doesn't select closing brace

Created on 1 Nov 2016  路  6Comments  路  Source: VSCodeVim/Vim

What did you do?

In normal mode I entered va{.

What did you expect to happen?

Both opening and closing braces along with enclosed content to be selected.

What happened instead?

The enclosed content and only the opening brace was selected. The closing brace was not selected.

Technical details:

  • VSCode Version: 1.6.1
  • VsCodeVim Version: 0.4.1
  • OS: Mac OS X 10.9.5

Cursor within enclosing braces and then keying va{:
screen shot 2016-11-01 at 9 14 01 am

Result of keying va{. Note that only the opening brace was selected along with the enclosed content, and that the closing brace was not selected:
screen shot 2016-11-01 at 9 14 25 am

All 6 comments

Has someone looked into this yet? It is a trifle but very annoying bug.

I was able to reproduce it, it is strange because it works in some cases

{
test
test}

works but

{
test
test
}

does not

this was caused by #1014

also relates to #1022

The way our visual cursor works is annoying here, should be able to find something that works for all of these cases though

This is still broken with v0.4.2. Entering va{ from within the content of the CSS rule omits the selection of the ending brace and results in the following:

`screen shot 2016-11-17 at 9 56 02 am

Just to confirm, it works now yeah LOL. Thank you to all the maintainers and contributors to this project. Outstanding!!!

No problem @jeffschwartz, feel free to continue to report what you find! We are looking for stability and every little bit helps!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jimmy-Z picture Jimmy-Z  路  3Comments

typeoneerror picture typeoneerror  路  3Comments

WangRongda picture WangRongda  路  3Comments

jaredly picture jaredly  路  3Comments

edwintorok picture edwintorok  路  3Comments