jesseduffield / jesseduffield/lazygit

Can't switch panels in Vim on Windows

Open
#5,679 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Describe the bug
I cannot switch between panels using tab, hjkl, or escape when running lazygit in a Vim or Neovim terminal on Windows. CMD vs powershell does not matter. The incorrect behavior persists between conhost.exe, the modern Windows Terminal, and Alacritty. Everything works correctly outside of Vim or Neovim.

- Version 0.57.0 is the last fully functional version on my machine.
- Version 0.58.0 causes tab to switch between panels out of order.
- Version 0.62.0 causes a popup warning about breaking changes. Dismissing the popup results in the status panel being permanently focused with no way to switch that I can figure out.

The issue persists the latest version, 0.62.2

### To Reproduce

1. Open a command prompt using any shell and terminal emulator of your choice on Windows
2. Run Vim or Neovim
3. Create a new terminal using :term in normal mode
4. Run lazygit in the new terminal
5. Try switching between panels using tab, hjkl, or escape

### Expected behavior
I expect to be able to switch between panels when running lazygit in a Vim or Neovim terminal

### Version info:

#### Working:
- commit=17d03ec8cb89d4c65fd129228164562a220abefb, build date=2025-12-06T13:01:50Z, build source=binaryRelease, version=0.57.0, os=windows, arch=amd64, git version=2.53.0.windows.3

#### Not Working:
- commit=a0e81c93b89ccb13efe186d057505c624fb1e4ec, build date=2026-01-03T19:26:24Z, build source=binaryRelease, version=0.58.0, os=windows, arch=amd64, git version=2.53.0.windows.3
- commit=7299b224efda4fccea7e62e9c595d2c6b4461639, build date=2026-05-26T20:32:14Z, build source=binaryRelease, version=0.62.0, os=windows, arch=amd64, git version=2.53.0.windows.3
- commit=009c8975beb322f9374789476ac65dfa02321fce, build date=2026-06-04T06:57:10Z, build source=binaryRelease, version=0.62.2, os=windows, arch=amd64, git version=2.53.0.windows.3

### Terminal info:
- Windows 10 conhost.exe
- Alacritty
- Windows Terminal, latest version

### Additional context
Like I said above, everything seems to work flawlessly outside of Vim or Neovim regardless of shell or terminal emulator. I am running on Windows 10. I have not tested on any other operating system. Running `lazygit --logs` does not seem to produce anything of interest.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.