Ex Command Operates on Previous Visual Selection
Open
@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
- Open a new file.
- Insert
abcdefginto the first line. - Yank and paste that line a few times.
- Insert a blank line after the last pasted line.
- Select the filled lines using visual line mode and yank them.
- Paste the yanked lines after the blank line.
- Select the pasted lines using visual line mode.
- Do
:norm 0xx.
Expected behavior
The ex command should be performed on the current visual selection.
Screenshots
VSCodeVim (bug):
![]()
Vim (expected behavior):
![]()
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.