title: is it possible to mapping Alt-hjkl in Insert mode?
body: <p>before describing my problem,  I'd list the env. applications here:</p>
  
  <pre><code>OS:linux 2.6.37-ARCH  (archlinux i686)
  vim: 7.2.436
  Terminal emulator: urxvt (with 256colors patch)
  
  kent$ echo $TERM
  rxvt-256color
  
  screen: Screen version 4.00.03 (FAU) 23-Oct-06
  </code></pre>
  
  <p>I run vim in terminal. I want to move cursor in INSERT mode by pressing ALT-hjkl, after the cursor moved, stay in INSERT mode, so that I could continue typing words.</p>
  
  <p>articles I found:</p>
  
  <p><a href="http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_Vim" rel="noreferrer">http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_Vim</a></p>
  
  <p><a href="http://vim.wikia.com/wiki/Get_Alt_key_to_work_in_terminal" rel="noreferrer">http://vim.wikia.com/wiki/Get_Alt_key_to_work_in_terminal</a></p>
  
  <p>what I tried:</p>
  
  <p>in .vimrc do a keyCode mapping with ttimeoutlen=50 like this: ( only alt-j mapping was pasted as example):</p>
  
  <pre><code>set timeout ttimeoutlen=50
  set &lt;F13&gt;=^[j  "ctrl-v alt-j
  imap &lt;F13&gt; &lt;down&gt;
  </code></pre>
  
  <p>with this conf, moving cursor in INSERT mode was ok. If I press <code>&lt;ESC&gt;</code> and j. Vim brings me back to insert Mode. I don't know why the <code>ttimeoutlen=50</code> didn't work.</p>
  
  <p>also tried:</p>
  
  <pre><code>set timeout ttimeoutlen=50
  set &lt;M-j&gt;=^[j
  </code></pre>
  
  <p>With this setting, when I pressed ALT-j, a "e" with an accent mark was typed.</p>
  
  <p>Can you guys give me any hints how should I map the ALT-hjkl in terminal ?</p>
  
  <p>Thanks in advance</p>
  
  <p>Kent</p>