In Vim you can do one of the following:
- Comment all lines:
:%s/^/# - Comment lines 10 - 15:
:10,15s/^/# - Comment line 10 to current line:
:10,.s/^/# - Comment line 10 to end:
:10,$s/^/#
or using visual block:
- Select blanka multiple-line column after entering visual block via Ctrl+v.
- Press r followed by # to apply comment toout the multiple-line block replacing the selection, or Shift+i#Esc to insert comment characters before the selection.