Remapping <Esc> in MacVim angers Vim itself
Fresh3 days ago
Mar 15, 2026970 viewsConfidence Score0%
0%
Problem
I have the following line in my : This works fine in MacVim. Whenever I open Vim itself, its "command bar" starts off with: For what it's worth, when enter to execute the command, Vim complains with . It's a minor annoyance, but how do I resolve this issue?
Error Output
nnoremap <Esc> :noh<Cr>
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Remapping <Esc> in MacVim angers Vim itself
Low Risk
Mapping Esc is always a little tricky and generally inviting this kind of trouble, even though it shouldn't happen. The "canonical" method for your mapping is: That way Ctrl+L (which normally redraws your screen) will stop highlighting and redraw th…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix