VSCodeVim / VSCodeVim/Vim

Reset to normal mode when leaving file focus

Open
#7,553 5 comments 29 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/not-vim-core kind/enhancement
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
I have a lot of files open, I'd like to automatically escape INSERT mode when changing focus into another file/tab

Describe the solution you'd like
Just a flag in the settings to reset to normal mode when focusing a new tab / leaving focus on another tab

Describe alternatives you've considered
I inspected the settings of the extension, but I found nothing

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

The issue names no files or tests. Start by locating the extension's settings schema and handling for VS Code editor or tab focus changes, then trace how INSERT and NORMAL modes are switched. Done means a configurable setting resets to NORMAL when focus moves to another file or tab, with coverage for the focus-change behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Feature
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.