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