jbgutierrez/vim-better-comments

Breaks syntax highlighting for some languages

Opened this issue · 0 comments

After installing this plugin, I noticed it disables syntax highlighting in certain filetypes. I've only noticed this with PHP so far but I assume there could be other languages that are also impacted.

Setting :set syntax=on with a PHP file open, works so it is not preventing it altogether.

If you want to use this plugin without needing to re-enable the highlighting every time, you can add the following to the .vimrc file, as a workaround:

"autocmd BufEnter *.php :set syntax=PHP.

When I uninstall this plugin and remove the above workaround, syntax highlighting works as expected.