Skip to content

[Bug] - vim command v2a behaves like va #229

@hollowhemlock

Description

@hollowhemlock

Consider the goal of deleting the double brackets around a wikilink. It can be accomplished with di[v2a[p in other vim implementations. The scope of this bug is the command v2a[. It behaves likes va[. v2a[ only selects up to 1 bracket. The bug also occurs with more that 2 brackets. v8a[ won't select 8 brackets.

Steps To Reproduce

  1. raw.githack.com/replit/codemirror-vim/master/dev/web-demo.html
  2. Write [[note]] on a new line (using insert mode, i)
  3. ensure in vim normal mode with esc
  4. put cursor inside brackets
  5. type v2a[

Expected Result

All characters selected in visual mode.
[[note]]

Current Result

Selects only the inside set of bracket and characters in between.
[[note]]

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