title: vim: Wrap current line in a /* */ comment
body: <p>I'm sure there are a zillion plugins to do this, but it seems so simple that I'd like to learn how to do it myself.</p>
  
  <p>I want to be able to wrap the current line in a multi-line comment. I tried to do a map for this, but I don't know how to map the minus key to move to the first word in the line. </p>
  
  <p>Here is the sequence of keys I'm trying to map:</p>
  
  <pre><code>&lt;minus key&gt; &lt;insert /*&gt; &lt;escape insert&gt; &lt;$&gt; &lt;insert */&gt; &lt;escape insert&gt;
  </code></pre>
  
  <p>Trying to map the minus key with <code>&lt;S--&gt;</code> did not work. How is this possible?</p>