[vim/vim] Vim prints to stdout instead of /dev/tty when using `git commit` (Issue #19350)

3 views
Skip to first unread message

Nathaniel Potrepka

unread,
Feb 6, 2026, 5:05:52 PM (4 days ago) Feb 6
to vim/vim, Subscribed
potrepka created an issue (vim/vim#19350)

Steps to reproduce

I'm not sure all the steps required to reproduce the bug, but this is happening to me after I downloaded the Ghostty terminal.

Whenever I run git commit, and Vim opens, I cannot use the ESC key anymore. It just prints to the terminal.

Expected behaviour

I would expect the ESC key to work in Vim, not print text to the screen.

This script fixes the bug:

mkdir -p ~/.local/bin
cat > ~/.local/bin/vim-tty << 'EOF'
#!/bin/bash
vim "$@" > /dev/tty
EOF
chmod +x ~/.local/bin/vim-tty
git config --global core.editor ~/.local/bin/vim-tty

Version of Vim

9.1

Environment

macOS 15.7.3
xterm-ghostty
zsh

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19350@github.com>

Christian Brabandt

unread,
Feb 6, 2026, 5:32:22 PM (4 days ago) Feb 6
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19350)

I don't follow. What is the reason to redirect stdout to dev/tty?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19350/3862862945@github.com>

Christian Brabandt

unread,
8:24 AM (3 hours ago) 8:24 AM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19350)

I am closing as invalid


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19350/3877580249@github.com>

Christian Brabandt

unread,
8:24 AM (3 hours ago) 8:24 AM
to vim/vim, Subscribed

Closed #19350 as not planned.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19350/issue_event/22674133249@github.com>

Reply all
Reply to author
Forward
0 new messages