VSCodeVim / VSCodeVim/Vim

Dot `.` command with multi-cursor operates multiple times on first line

Open
#3,691 4 comments 2 reactions 1 assignee View on GitHub

@J-Fields is already working on this.

Since May 13, 2020.

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

Description

Using the dot operator (.) to repeat keystrokes in multi-cursor mode results in those keystrokes getting applied multiple times to the line of the first cursor.

To Reproduce

  1. Create 3 lines:
    aaa aaaa aaaaa
    bbb bbbb bbbbb
    ccc cccc ccccc

  2. Enable multiple cursors at the start of each line.

  3. Move to start of second word and prepend '123' with key strokes: w i 123 esc

  4. Move to start of the third word with keystroke: w

  5. Attempt to insert '123' with keystroke: . (period)

Expected behavior
'123' would be prepended to the second word of each line with text now as:
aaa 123aaaa 123aaaaa
bbb 123bbbb 123bbbbb
ccc 123cccc 123ccccc

Actual Results*
aaa 123aaaa 121212333aaaaa
bbb 123bbbb bbbbb
ccc 123cccc ccccc

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.