`C-[` does not escape from insert mode in evil local mode
<p>I just started to use vim in my emacs. While most of the docs/wikis suggest turn on evil mode globally, I, being a emacs user at the first beginning, really prefer to keep evil mode local. That means, when I need model editing I will turn on the evil mode in that local buffer. I wrote a piece of elisp to toggle on/off evil mode for this purpose:</p>

<pre><code>(defun toggle-evil-local-mode ()
"Toggle on and off evil mode in local buffer."
(interactive)
(if evil-local-mode
    (turn-off-evil-mode)
  (turn-on-evil-mode)))

(global-set-key (kbd "s-e") 'toggle-evil-local-mode)
</code></pre>

<p>However, there is one thing bothers me. I can not use <code>C-[</code> to escape from insert or visual mode to normal mode (emacs reads the keystroke as <code>ESC-</code> and waiting for more input in the echo area ), <code>Esc</code> key works fine though. But if I turn on the evil mode globally, <code>C-[</code> just work the same as <code>Esc</code> key. </p>

<p>You might notice that I am using a Mac from the keybinding. While I can use <code>Esc</code> key currently, but what if I upgrade to a new MBP with those evil touch bar in the future? So is there any way to fix this problem? Any suggestion will be appreciated.</p>