VSCodeVim intermittently inserts period when pressing space bar in insert mode
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
I've been using VSCodeVim on my Mac for years, but lately, it intermittently inserts a period when I press the space bar twice (on a new line starting from the left margin). In other words, it inserts a period (full stop) in column 2 on that line.
If I keep tapping the space bar, it inserts normal spaces for the remainder of the line.
Interestingly, if I press and hold the spacebar, a period isn't inserted in the second column.
To Reproduce
Steps to reproduce the behavior:
- Press 'ESC`
- Press
ito enter insert mode. - Tap the space bar twice. On the second tap, it intermittently leaves a period character.
Expected behavior
I should be able to insert two spaces on a line and not see a period character in the second column (position).
Screenshots
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.27.3
- VSCode version: Version: 1.92.0 (Universal)
- OS: Sonoma 14.6
Additional context
I have tried different keyboards and they don't solve this issue. When I turn off VSCodeVim, the problem goes away.
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.
Research direction
Start by reproducing the issue in VSCodeVim v1.27.3 with VS Code 1.92.0 on macOS Sonoma, following the listed Esc, insert-mode, and double-space steps. Compare the behavior with VSCodeVim disabled; done means tapping the space bar twice in insert mode consistently produces two spaces without a period.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100