Closed
Labels
Description
Steps to reproduce
The reproduction procedure has not yet been established. I'm currently working on establishing a procedure.
When Vim starts, garbage characters sometimes appear at the beginning of the buffer.
Pattern 1: ;2$y^[[?2048;0$y^[[?12;2$y
Pattern 2: ^[[3;1R^[[>0;10;1c^[]10;rgb:cccc/cccc/cccc^[\^[]11;rgb:0c0c/0c0c/0c0c^[\^[[?2026;2$y^[[?2048;0$y^[[?12;2$y
The garbage may appear only briefly, or it may remain. (It can be cleared with CTRL-L)
It is likely a response to terminal requests \033[?2026$p (sync) and \033[?2048$p (win resize).
It is not certain, but it may be related to the execution of system() in .vimrc when Vim starts.
Expected behaviour
Garbage not appears.
Version of Vim
9.2.0148
Environment
Ubuntu 24.04.4 LTS
Windows Terminal 1.23.20211.0
TERM=xterm-256color
Logs and stack traces
None.
Activity
h-east commentedon Mar 13, 2026
Cc: @64-bitman
64-bitman commentedon Mar 13, 2026
I cannot reproduce, does this happen when run with
--clean? If it doesn't can you share your vimrc? Thanksh-east commentedon Mar 13, 2026
tabline_example_bad.vim
Executing the following will prevent the garbage from remaining indefinitely, but it will briefly appear on the first line of the buffer (the line after the tabline).
o-sdn-o commentedon Mar 13, 2026
@h-east I suspect this may be related to a bug in Win32-OpenSSH. Are you using Win32-OpenSSH to connect to Ubuntu?
h-east commentedon Mar 13, 2026
o-sdn-o commentedon Mar 13, 2026
The Win32-OpenSSH release with the fix hasn't been published yet, so it might be worth building it from source (it's fixed there) and seeing how it goes. Building ssh.exe should be enough.
h-east commentedon Mar 15, 2026
Following the instructions in Commit 751b59e I added
:silentto thesystem()call and the problem disappeared.Thank you @mattn 👍