DEV Community

HaxNet
HaxNet

Posted on

VIM - uncommenting using Visual-Block

Hey guys!

I don't know about you, but sometimes when I copy and paste something from the web and paste it to VIM I get these ## or // that comments out. Not sure why. Safety?

My prior (click here)post shows how to add things using visual blocks, this time it is how to remove them. You would think it's the same process, but it isn't.

Okay let's get to it.

Ctrl-v (start visual block)
press j or k or the up and down arrows
press l or h or the left and right arrows to highlight the text(s) you want to delete
press d or x

That's it!

Happy Coding!

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay