VSCodeVim / VSCodeVim/Vim

Ex Command Operates on Previous Visual Selection

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

@J-Fields is already working on this.

Since May 13, 2020.

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

Description

Describe the bug
When performing an ex command on a visual selection, the command is incorrectly applied to the previous visual selection.

To Reproduce

  1. Open a new file.
  2. Insert abcdefg into the first line.
  3. Yank and paste that line a few times.
  4. Insert a blank line after the last pasted line.
  5. Select the filled lines using visual line mode and yank them.
  6. Paste the yanked lines after the blank line.
  7. Select the pasted lines using visual line mode.
  8. Do :norm 0xx.

Expected behavior
The ex command should be performed on the current visual selection.

Screenshots
VSCodeVim (bug):
vscode-vim bug gif

Vim (expected behavior):
vim expected behavior gif

Environment (please complete the following information):

  • Issue Type: Bug
  • Extension Name: vim
  • Extension Version: 1.1.0
  • OS Version: Windows_NT x64 10.0.17134
  • VSCode version: 1.32.1

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.