Advertisement
Other

Vim Essential Plugin: tComment

by

The tComment Vim plugin serves one purpose: to help you toggle comments in your code as quickly as possible. I'll show you how easy it is to use in this quick tip.


Usage

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.

Related Posts
  • Web Design
    Photoshop
    How to Improve Your Photoshop Workflow With CSSHat and PNGHatPs web thumb 1
    During this tutorial I'm going to walk you through the process of creating sophisticated web element styling in Photoshop, but without employing a single image file in your finished website. When we're done, you'll have a single page layout using nothing but CSS3, Base64 code and font icons.Read More…
  • Code
    Plugins
    Choosing the Right Plugin for Your Next WordPress ProjectPlugin icon 400
    Ever needed a plugin for your WordPress-based website? Of course! After all, that's how WordPress is extended, isn't it? If you're a beginner to WordPress, or even a power user, then you're likely familiar with the WordPress plugin repository, premium plugins, and so on. The thing is, there are so many plugins available that do many of the same things, it can be difficult to determine which is best suited for your particular needs. This raises the question: What do you do to find the perfect plugin for a particular need? In this post, we're going to see how to find the best plugin for exactly that.Read More…
  • Computer Skills
    App Training
    How To Create an MLA Template in Word and PagesPreview
    In this tutorial, I will show you how to make MLA style templates in Pages and Microsoft Word to eliminate the need to remember each and every style rule each time you write an MLA style paper. You'll only need to make the template once, and every time after that it'll only take a click to get your paper formatted correctly.Read More…
  • Code
    Plugins
    Integrating Owl Carousel Into a WordPress Plugin: Preparing Our WorkspaceOwl carousel
    This is the second part of step-by-step tutorial on plugin development. As you may remember, in previous part we have discussed the concept of the plugin and defined the plan of development process. I you have not read the first part of tutorial, I recommending reading that article prior to moving forward with this tutorial. In this part, we are going to prepare our workspace to make it as easy as easy as possible to continue working on our plugin. We’ll define what we need for work and create the structure of the plugin according to its functionality. In the end you will see your plugin activated in Dashboard. So, let’s start.Read More…
  • Design & Illustration
    Text Effects
    Create an Animated, Glittering, Valentine's Day Text EffectGlitter animation preview400
    Smart objects are powerful layers in Photoshop that allow you to make non-destructive edits. In this tutorial, we will use smart objects to help build a custom text effect as well as a complex, animated texture. By working with smart objects, we will be able to quickly update our scene simply by editing the smart objects. Let's get started!Read More…
  • Code
    Theme Development
    Making the Perfect WordPress Theme: How to Code WellWp white 400
    In the previous part of this series; we went through various WordPress APIs that we should learn about, talked about the importance of making a theme translatable (or even better, releasing them already translated into other languages) and understood the concept of licensing themes and using licensed products with the themes. In this article, we're going to focus on code: We'll see how to code with WordPress coding standards, how to properly comment our code and how to validate and test the theme.Read More…