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

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

When editing html in vimVim, 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.

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.

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.

Source Link

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.