VSCodeVim / VSCodeVim/Vim

vim freezes on certain commands doesnt work until vscode restart

Open
#9,814 0 comments 0 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
Vim stops working when executing a wrong command sometimes

To Reproduce
Steps to reproduce the behavior:

  1. change a file
  2. quickly execute a save/exit command wrongly such as :Q :W :wQ and press return (maybe while still holding SHIFT)

Expected behavior
to save / quit the file

Screenshots
in the bottom status bar, where the command is shown: it will stay stuck on the command

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.31.0
  • VSCode version: 1.105.1
  • OS: Windows 11 (Happened on Win 10 as well)

Additional context

  • im using an external vimrc file
map <Leader>ff <action>(com.mituuz.fuzzier.Fuzzier)
map <Leader>fc <action>(com.mituuz.fuzzier.FuzzyMover)
map <Leader>fv <action>(com.mituuz.fuzzier.FuzzierVCS)
map <Leader>fg <action>(com.mituuz.fuzzier.FuzzyGrep)

map <Leader>ba "+p
map <Leader>by "+y

map <C-w>d <Action>(ShowHoverInfo)

// the bug happened before i added those keybindings as well
nnoremap sf :w<CR>
nnoremap sq :wq<CR>

Plug 'tpope/vim-commentary'

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

Start by reproducing the issue in VSCodeVim 1.31.0 on Windows with the commands :Q, :W, and :wQ, including the external vimrc context described. Check the command-line behavior after an invalid save or exit command; done means the status bar no longer remains stuck and subsequent commands work as expected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.