vim-better-comments icon indicating copy to clipboard operation
vim-better-comments copied to clipboard

Breaks syntax highlighting for some languages

Open danielwrobert opened this issue 7 years ago • 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.

danielwrobert avatar Sep 14 '18 15:09 danielwrobert