improve comment functions for HTML, Vim, and C++ scripts

Issue #1
I fixed a bug in the comment functions which could misalign the comment
characters.