Neovim TUI will be broken when used inside DevPod container
Author: AnhQuanTrlCreated Jul 24, 2024Updated Aug 28, 2026
Labelskind-bug
What happened?
When using Neovim as described in Quickstart Neovim page, Neovim will behave weirdly with broken scrolling with split buffers. I have created an issue to the neovim team: Issue. It seems that this issue is exclusive to DevPod due to the way it uses ProxyCommand when ssh-ing to the DevPod container.
Things that I and the people inside the neovim issue have tried:
- Set
TERMvariable inside the container toxtermoralacrittyorxterm-256colorand install the appropriate terminal info -> This does not solve the issue. - Try using
docker container exec -it containername bashdirectly -> This worked. - Try running
tmuxinside the container before using neovim -> Weirdly this worked?!
What did you expect to happen instead?
Neovim should behave normally inside devpod ssh just like when used directly inside container's shell.
How can we reproduce the bug? (as minimally and precisely as possible)
- Create a minimal
devcontainer.jsonthat contains an ubuntu container. - Install neovim inside the container, either directly or by using devcontainer features.
- Try using neovim and open multiple buffers. Scrolling on one buffer will break the other buffers.
Local Environment:
- DevPod Version: 0.5.18
- Operating System: Mac and Linux
- ARCH of the OS: AMD64 and ARM64
DevPod Provider:
- Local/remote provider: docker
Anything else we need to know?
Source: loft-sh/devpod