:%s//#/ [download]
In reply to Re^3: Adding '#' in the beginning of each line by liverpole in thread Adding '#' in the beginning of each line by Anonymous Monk