question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to switch back to normal mode in insert mode

See original GitHub issue

Describe the bug I am unable to switch back to normal mode after pressing ESCAPE in insert mode (default keybinding).

To Reproduce Steps to reproduce the behavior:

  1. Press i to start editing file
  2. Press Escape to go back to normal mode
  3. Stays in insert mode

Expected behavior I expect the plugin would bring me back to normal mode.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 0.15.3
  • VSCode version: 1.25.0 (snap package version)
  • OS: Ubuntu 18.04

Additional context I partially fixed the problem by changing this

{
    "key": "escape",
    "command": "extension.vim_escape",
    "when": "editorTextFocus && vim.active && !inDebugRepl"
}

to (removing inDebugRepl check)

    {
        "key": "escape",
        "command": "extension.vim_escape",
        "when": "editorTextFocus && vim.active"
    }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bohrshawcommented, Aug 4, 2018

Setting "keyboard.dispatch": "keyCode" fixes this issue for me when I’m using a remote Linux desktop. This may help: https://github.com/Microsoft/vscode/wiki/Keybinding-Issues#troubleshoot-linux-keybindings

0reactions
jpooncommented, Dec 30, 2018

Sounds like we have a resolution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

When using the Vim editor, I cannot switch back to normal ...
When using the Vim editor, I cannot switch back to normal mode from insert mode. Since releasing support for Vim and Emacs modes...
Read more >
How do I switch between command and insert mode in Vim?
Pressing ESC quits from insert mode to normal mode, where you can press : to type in a command. Press i again to...
Read more >
Switch between Normal mode and Insert mode? : VIM-819
Hey, I am using Mac WebStorm9 with the latest IdeaVim plugins. Under the tools, I choose Vim Emulator on by default. Every open...
Read more >
Vim Stuck In Insert Mode - linux - Super User
Makes Vim work in a way that Insert mode is the default mode. ... a number of Normal mode commands, then use Esc...
Read more >
Automatic insert mode and normal mode switching
I have been recently trying out Vim, and I found out you need to first exit insert mode to then use commands. So,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found