VSCodeVim / VSCodeVim/Vim

Shift + Escape in insert mode should return to normal mode

Open
#7,673 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
When in insert mode, pressing Shift+Esc should return you to normal mode (just like Esc). This is how it works in vim.

This came up for me when quickly typing something like .collect() followed by escape. Sometimes I might have failed to let go of shift (from the paren) prior to pressing escape. I'm used to this working fine in regular vim.

To Reproduce
Steps to reproduce the behavior:

  1. Go into insert mode
  2. Press Shift + Esc

Expected behavior
Expect it to return to command mode

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.22.2
  • VSCode version: 1.66.2
  • OS: Mac arm64 (Universal binary)

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 behavior in VSCodeVim 1.22.2: enter insert mode and press Shift+Esc, then compare it with Esc. Trace the TypeScript keybinding or input-handling path responsible for leaving insert mode, and verify that Shift+Esc returns to normal mode without changing the existing Esc behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.