Bash: Multi line comment using vim
For instance, you want to comment from line 1 to 3, try the following
:1,3s/^/#
Here, you are saying
from line 1 to 3(1,3)
to substitute(s)
the beginning of the line (^)
with the character #
:1,3s/^/#
Comments
Post a Comment