title: What is your favorite way to comment several lines in Vim?
body: <p>It happens more often than not that I have to comment several lines at once in Vim. Methods that I know are not as fast as say TextMate way to comment lines out.</p>
  <p>What is your favorite way to do it?</p>
  <p>I currently use:</p>
  <h3>Method 1:</h3>
  <ul>
  <li>go to first char of a line and use blockwise visual mode (<kbd>ctrl</kbd>-<kbd>v</kbd>)</li>
  <li>go down/up until the first characters of every lines you want to comment out are selected</li>
  <li>use <kbd>shift</kbd>-<kbd>i</kbd> and then type your comment character (<code>#</code> for Ruby)</li>
  <li>use <kbd>esc</kbd> to insert the comment character to every line</li>
  </ul>
  <h3>Method 2:</h3>
  <ul>
  <li>select lines you need to comment out using linewise visual mode (<kbd>shift</kbd>-<kbd>v</kbd>)</li>
  <li>type <code>:</code> which gives you a <code>:'&lt;,'&gt;</code> prompt which you can extend to <code>:'&lt;,'&gt;s/^/#/</code></li>
  </ul>
  <h3>Method 3:</h3>
  <ul>
  <li>go to the first line to be commented out</li>
  <li>make a bookmark for example typing <code>mm</code></li>
  <li>go to the last line to be commented out</li>
  <li>type <code>:'m,.s/^/#/</code></li>
  </ul>
  <p>I like method 1 the most but I still hope there is a better way.</p>