Skip to content

Can't exit zen mode #9981

@MorrisLaw

Description

@MorrisLaw

Describe the bug
When in zen mode it's not possible to exit zen mode with the "esc, esc" sequence that you would normally use, when you're inside of a file. This only happens when you have the vim mode enabled. When it's disabled I can do the sequence whether or not I'm inside a file or an extension or other settings tab.

To circumvent this while in vim enabled mode, one must be in a non-file tab and press the "esc, esc" sequence to get out of zen mode.

To Reproduce
Steps to reproduce the behavior:

  1. Enable vim mode
  2. Do the "control+k, z" keybinding to get into zen mode
  3. Select a file tab (e.g. logs.txt) and try to "esc, esc" to get out of zen mode.
  4. See that nothing happens.
  5. Switch to a setting tab, e.g. the vim extension.
  6. Try "esc, esc"
  7. See that it properly gets you out of zen mode

Expected behavior
I expect "esc, esc" to be recognized as a way to exit zen mode, even if I'm currently selected onto a file tab.

Screenshots
I can provide screenshots if helpful. But it seems pretty self-explanatory and lack of action when pressing the sequence, makes it hard to screenshot.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.32.4
  • VSCode version: 1.115.0
  • OS: Ubuntu 24.04.1 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions