macvim-dev / macvim-dev/macvim

Escape key no longer works in MacVim

Open
#871 6 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.