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 #

Comments

Popular posts from this blog

Pentaho ETL

Copy files from one computer to other using ‘scp’ command