title: What is the termcap code for the caret (aka circumflex) (^) key?
body: <p>I want to remap the <code>^</code> key to <code>&lt;Esc&gt;</code> in VIM since it is easier to reach on a german keyboard. As far as I understand there is no keycode for the <code>^</code> key and I have to use the termcap notation:</p>
  
  <pre><code>inoremap &lt;t_*&gt; &lt;Esc&gt;     " remap ^ to ESC
  inoremap &lt;C-t_*&gt; &lt;t_*&gt;   " map CTRL-^ to the plain ^ (insert a '^' char)
  </code></pre>
  
  <p>But I could not find the termcap code for the circumlflex <code>^</code>. Does anybody know a complete list of termcap codes for typical terminals. I want this solution to work for gvim in Ubuntu and Windows.</p>
  
  <p><strong>Edit:</strong> <code>inoremap ^ &lt;Esc&gt;</code> in Linux works partially. You have to press <code>^^</code>. It only works perfectly if you use a non-dead-key layout. <code>inoremap &lt;C-^&gt; ^</code> also does work fine with a non-dead-key layout but does not work at all with the default layout.</p>
  
  <p><strong>Solution:</strong> Use a keyboard layout that does not mute the <code>^</code> key and use the <code>^</code> (aka. circumflex or caret) as a std. ASCII character in your ~/.vimrc.</p>
  
  <p>See <a href="https://superuser.com/questions/280005/how-to-make-and-non-dead-keys-on-windows-7-with-german-keyboard-layout">superuser.com/questions/280005</a>, how to disable dead keys in Windows. Thx Jens for the link.</p>
  
  <p>Thx, Juve</p>