I've recently shifted to Emacs + Evil for my dev setup, and seem to be running into a rather strange issue with Emacs 24: when I exit Insert mode using Ctrl+[ and try to save the file with :w, Emacs enters the debugger with this error message:
Debugger entered--Lisp error: (void-variable w)
eval(w nil)
eval-expression(w nil)
call-interactively(eval-expression nil nil)
command-execute(eval-expression)
This does not happen if I pause for a few seconds after Ctrl+[. This also appears to be restricted only to Emacs in terminal - this happens quite frequently on bash/Cygwin, but never happens on the standalone version of Emacs
Does anyone know what could be going wrong? I have this configuration in my .emacs foe evil mode:
(setq evil-want-C-i-jump nil)
(require 'evil)
(evil-mode t)