VSCodeVim / VSCodeVim/Vim

Escape not returning to normal mode from insert mode

Open
#8,599 4 comments 7 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

  1. Enable Vim exstension.
  2. Open any text document.
  3. Properly move cursor using Vim movement keys.
  4. Enter Vim edit mode by pressing 'i' or 'a' etc., and type some text.
  5. Press 'esc' to return to Vim movement mode.
  6. Vim does not return to movement mode as expected, but remains in edit mode.

I have remapped(switch) esc with capslock in ubuntu terminal in xev hitting capslock gets me "keycode 66 (keysym 0xff1b, Escape)", and my capslock button works as esc(and switching in normal mode) flawlessly in original vim, in vim mode on pycharm and idea.

Extension version: 1.26.0
VS Code version: Code 1.82.1 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:51:20.981Z)
OS version: Ubuntu x64 20.04.6

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 the VS Code Vim extension on Ubuntu 20.04 with Caps Lock remapped to Escape, following the six steps in the report. Compare the behavior of the remapped key with a physical Escape key; done means both keys reliably return Vim from insert mode to movement mode.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.