Using Visual Block mode (<kbd>Ctrl</kbd><kbd>V</kbd>), select the beginning of the lines.  Then hit <kbd>I</kbd><kbd>#</kbd> (that's a capital letter `I`) to insert the hash character on each of those lines. Then press <kbd>Esc</kbd>.