dashes replaced with - in comments
victoriastuart opened this issue · comments
Victoria Stuart commented
Wonderful plugin, but in HTML files dashes are being replaced by HTML codes in commented text:
http://js.cytoscape.org/#getting started
<!-- http://js.cytoscape.org/#getting-started -->
Is there a solution to this? Thanks!
Victoria Stuart commented
OK, I "solved" this.
- Find the problem
[victoria@victoria tcomment_vim]$ pwd; rg . -e '-'
/home/victoria/.vim/bundle/tcomment_vim
./autoload/tcomment.vim
152: "\ '-': '-',
- Edit
~/.vim/bundle/tcomment_vim/autoload/tcomment.vim
(line 152 per ripgrep result, above):
"\ '-': '-',
"\ '&': '&',
\ '-': '-',
\ '&': '&',
The simplest solution is to simply replace -
with -
...
- Restart Vim.
Tom Link commented
If you don't want the replacements, set the variable to an empty dictionary. IIRC this could cause problems with nested comments (e.g, in embedded docs), which is why this feature exists in the first place.