When I use :w to save my JSON file, vim automatically adds some commas
at syntactically significant (?) places.
It does not happen when I use :x or ZZ. This started today.
I did not change anything about vim (expect just tab space).
Here’s an animated demonstration:

Do you have any suggestions? I can't figure out why this is happening.
autocmd BufWritePre. If not debug your vimrc. – Ralf Jul 08 '19 at 04:44:Xverbose wwhere X is 9, 12 or 15 (increasing numbers provide further levels of detail...sometimes too much detail thus start lower and then go higher if necessary) If that doesn't lead you to the answer then follow the link Ralf provided. – B Layer Jul 08 '19 at 05:17:autocmdand:verbose. Debugging yourvimrclooks like a great post. Thank you very much. – 1t1e1 Jul 08 '19 at 10:43