jbgutierrez / vim-better-comments

Easily highlight human-friendly comments in your code!
MIT License
114 stars 9 forks source link

Breaks syntax highlighting for some languages #3

Open danielwrobert opened 6 years ago

danielwrobert commented 6 years ago

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.