Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Vi comment out block / VI comment multiple lines

Go to the line and hit

1) m{CHAR} or m{a}
and
2) put e mark in m{CHAR} in the end of the line

When you have marked a with start of line and e with end of line
type
3) :’a,’e s/^/# /

You can also use line numbers,
1 to $ ($ is the last line)
solitary % for everyline
. or blank for the current line.
To illustrate the “blank”, these two commands do the same thing:

:,$ s/^/# /
:.,$ s/^/# /