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.
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
9.1
macOS 15.7.3
xterm-ghostty
zsh
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
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.![]()
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.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()