the "ZZ" is a command to save and exit vi. But you have to leave the editing mode prior. So, after inserting "#" you have to hit the "esc" button. Then type ZZ (upcase letters!). nicolai