title: Custom vi command: How to insert current date with a variable's content?
body: <p>I'm new to the <code>vi</code> editor and I would like to create a simple custom command in <code>.vimrc</code> that inserts something like <code>2012-03-13 22:21:17.0 +0100 / Daniel</code>.</p>
  
  <p>Actually, my command (in <code>.vimrc</code>) is as follows:</p>
  
  <pre><code>command! InsertTime :normal a&lt;C-R&gt;=strftime('%F %H:%M:%S.0 %z')&lt;CR&gt;
  </code></pre>
  
  <p>I also set a variable:</p>
  
  <pre><code>let myname="Daniel"
  </code></pre>
  
  <p><code>InsertTime</code> inserts the date perfectly. But how can I concatenate it with the content of my variable?</p>