Add a autocmd to yaml