title: map execute command vim
body: <p>I found the following execute command to be useful in vim:</p>
  
  <pre><code>:execute "normal! mqA;\&lt;esc&gt;`q"
  </code></pre>
  
  <p>it goes to normal mode, then it makes a mark "q" at cursor position,
  goes to end of the line and adds a semicolon ";", then it goes to
  normal mode again and returns to the original cursor position.</p>
  
  <p>How could I map all this command to a key called "scc"? </p>
  
  <p>I have tried:</p>
  
  <pre><code>imap scc &lt;Esc&gt;:execute "normal! mqA;\&lt;esc&gt;`q"&lt;CR&gt; 
  </code></pre>
  
  <p>however it didn't work. Thanks.</p>