(+84) 463.28.7979

Vim Essential Plugin: tComment


This utility plugin is a cinch to use – mostly because it performs only a single task. To comment a line of code, press ctrl _ ctrl _. Alternatively, if you wish to toggle multiple lines, select them in visual mode, and, again, press the trigger sequence: ctrl _ ctrl _

You can also use the shortcut gcc to comment a single line at a time. If you’d instead prefer to comment a single word, a few letters, or any other motion, use gc{motion}. For example, to comment the first word on a line, I could type: gcw, or, for the first three words: gc3w.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>