Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Escape not returning to normal mode from insert mode

Open olegkamuz opened this issue 2 years ago • 4 comments

  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

olegkamuz avatar Sep 15 '23 22:09 olegkamuz

I have been getting this recently as well without updating other settings. I ensured I had not re-mapped extension.vim_escape.

Downgrading the extension does not seem to help.

Extension: 1.26.2 Code: 1.83.1 f1b07bd25dfad64b0167beb15359ae573aecd2cc OS: 254.5-1-arch x64

UPDATE: I'm dumb and had accidentally mapped my Escape key to focusing VSCode in KDE Plasma. I must have been trying to escape the keyboard shorcut editor. This perfectly prevented my escape key from having any effect within VSCode without affecting the rest of my desktop experience.

ScottMorse avatar Oct 24 '23 04:10 ScottMorse

+1 Extension: v1.27.1 vscode: 1.84.2 (Universal) 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e OS: Darwin arm64 21.6.0

PhotoByLucas avatar Dec 04 '23 03:12 PhotoByLucas

the same issue +1 Extension: v1.27.2 vscode: 1.84.2 OS: apple M1 pro version 12.5

zouhuan1215 avatar Jan 06 '24 12:01 zouhuan1215