Answers for "how to comment a whole file in vim?"

-1

how to comment a whole file in vim?

# To comment a block
:66,70s/^/#/g

# To uncomment a block
:66,70s/^#//g
Posted by: Guest on July-23-2021

Code answers related to "how to comment a whole file in vim?"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language