title: How to change cursor shape in Vim when entering insert mode with macOS Terminal.app?
body: <p>I want to change the cursor shape from an underscore to vertical when entering insert mode within VIM running in Terminal.app. (NOTE: I am aware that this is the default behavior under macvim.)</p>
  
  <p>This reference: <a href="http://vim.wikia.com/wiki/Change_cursor_shape_in_different_modes" rel="nofollow">http://vim.wikia.com/wiki/Change_cursor_shape_in_different_modes</a> provides instructions on how to do this. For example, the following works with iterm2:</p>
  
  <pre><code>let &amp;t_SI = "\&lt;Esc&gt;]50;CursorShape=1\x7"
  let &amp;t_EI = "\&lt;Esc&gt;]50;CursorShape=0\x7"
  </code></pre>
  
  <p>Unfortunately, this does not work with Terminal.app (under Lion).</p>
  
  <p>Are there any tricks for this with Terminal.app - or is this just not supported?</p>