macvim-dev / macvim-dev/macvim
Escape key no longer works in MacVim
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Description
I am running MacVim 8.1.950 and macOS 10.14.3. Somewhere in the last couple of updates, or perhaps after upgrading to Mojave, the escape key quit working for me when using MacVim. If I am in insert mode and press escape, nothing happens. Ctrl-[ does work, and I can also do :map ii and use that. But this is a huge hassle after decades of using Vim.
In terminal, on the command line, escape works in Vim. In VimR, escape works in the gui. I have only noticed the problem when using MacVim. It was also happening on at least one version prior to 8.1.950. This problem has been persistent for a while through multiple upgrades to Mojave and to MacVim.
Any suggestions?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in MacVim 8.1.950 on macOS 10.14.3, comparing Escape with Ctrl-[ and with terminal Vim and VimR. Trace the MacVim GUI handling of the Escape key; it is done when Escape reliably exits insert mode without affecting the working behavior in the other Vim environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, vim
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100