title: How can I comment a single line or a block of lines in Vim?
body: <p>In a CSS file, this line is in more than 5 rules.</p>
  
  <pre><code>border: 1px solid black;
  </code></pre>
  
  <p>I want to comment this line like this:</p>
  
  <pre><code>/*border: 1px solid black;*/
  </code></pre>
  
  <p>Is there a shortcut to do this comment for all 5 occurrence?</p>
  
  <p>Can I assign a key to comment a single line or a block of lines?</p>
  
  <p>I don't want to search and replace this only line, i want to set a key so that when i hover a line and press that key, that line will be commented or selecting a line or selecting a block of line, if i press that key, that line or block of line will be commented.</p>