VSCodeVim / VSCodeVim/Vim

vit operation error selected character >

Open
#9,137 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
The selected character was error, when press vit in normal mode.As shown below:

image

The lower part of the figure shows how it looks in vim, which is correct.

To Reproduce
Steps to reproduce the behavior:

  1. get a vue file with code like:
        <li
          v-for="item in diseases"
          :key="item.name"
          class="ellipsis"
          aria-role="button"
          :aria-label="item.name"
          @click="toDisease(item)"
        >
          {{ item.name }}
          <span class="btn-link" />
        </li>
  1. move cursor into li tag
  2. presse vit on normal mode
  • Extension (VsCodeVim) version: v1.27.3
  • VSCode version: 1.91.1 (Universal)
  • OS: Darwin arm64 23.5.0

commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
date: 2024-07-09T22:07:54.982Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0

Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a Vue file using the provided

  • example, place the cursor in the tag, and press vit in normal mode. Trace the normal-mode vit text-object handling and compare the selected character with Vim; done means the matching selection agrees with Vim for this case and a regression test covers it.

  • Written by the indexing model from the issue text.

    Assessment

    Tech stack
    typescript, vscode
    Domain
    devtools
    Issue type
    Bug
    Difficulty
    3/5
    Estimated time
    1-2 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    35/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.