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)