Added "nested" to the file saving autocmd.
It makes sure that events related to writing will be triggered.