Skip to main content
2 of 2
edited body; edited title
Vivian De Smedt
  • 21.1k
  • 5
  • 22
  • 40

Vim tcomment plugin changes the hyphens in untagged text (html) to html code (& #45;)

When editing html in Vim, I'll write the class name of the section that I am working on like this:

mid-med

It is untagged plain text.

I'll call tcomment to comment that out. What I expect to have happen is this:

<!-- mid-med -->

Instead I get this:

<!-- mid&#45;med -->

tcomment is converting the plain-text hyphen into html character code.

Is there anyway to prevent tcomment from doing this?

I searched "help:tcomment" but I couldn't find or make sense of anything.

I could just create the comment code first then type in the text but that's counter-intuitive and messing up my workflow.

Any help would be appreciated.