TComment plugin for Vim

The TComment plugin is a must-have for every Vim user. It does just one thing and does it well: comment or uncomment lines of code in any language.

First clone the plugin from its github homepage and install it using Pathogen.

To comment or uncomment a few lines of code, mark the lines in visual mode. You can do this by pressing Shift-V on the first line and then moving down by pressing j. After that, press gc to comment or uncomment those lines. That is it! 🙂

Tried with: Vim 7.3 and Ubuntu 12.04 LTS

2 thoughts on “TComment plugin for Vim

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.