How To Comment A Whole File In Vim

[Solved] How To Comment A Whole File In Vim | Go - Code Explorer | yomemimo.com
Question : how to comment a whole file in vim?

Answered by : ricardo-hincapie

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

Source : https://unix.stackexchange.com/questions/120615/how-to-comment-multiple-lines-at-once | Last Update : Fri, 30 Jul 21

Answers related to how to comment a whole file in vim

Code Explorer Popular Question For Go