Commenting out multiple lines in vim

To add hashes to multiple lines:

  • to enter visual mode
  • Arrow Keys to highlight the lines to be changed
    • Inserting: Use one of the following to insert hashes depending on the version of vim
      • , then the ‘ ’ key, then ‘
    • Deleting: Use the ‘ ’ keyboard key

 

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">