DEV Community 👩‍💻👨‍💻


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)

Timeless DEV post...

How to write a kickass README

Arguably the single most important piece of documentation for any open source project is the README. A good README not only informs people what the project does and who it is for but also how they use and contribute to it.

If you write a README without sufficient explanation of what your project does or how people can use it then it pretty much defeats the purpose of being open source as other developers are less likely to engage with or contribute towards it.